-----Original Message-----
From: cwittich@svn.reactos.com [mailto:cwittich@svn.reactos.com]
Sent: 16 November 2005 15:54
To: ros-diffs@reactos.com
Subject: [ros-diffs] [cwittich] 19266: fix memory leak in case of errorfix memory leak in case of errorModified: trunk/reactos/lib/newdev/newdev.c
Modified: trunk/reactos/lib/newdev/newdev.c--- trunk/reactos/lib/newdev/newdev.c 2005-11-16 15:14:31 UTC (rev 19265) +++ trunk/reactos/lib/newdev/newdev.c 2005-11-16 15:53:16 UTC (rev 19266) @@ -66,6 +66,7 @@FullInfPathW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); if (!FullInfPathW) {+ HeapFree(GetProcessHeap(), 0, HardwareIdW);SetLastError(ERROR_GEN_FAILURE); return FALSE; }