fix memory leak in case of error
Modified: 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;
     }