[SETUPAPI]
[reactos.git] / reactos / dll / win32 / setupapi / devclass.c
index a8a9b66..1e2a734 100644 (file)
@@ -552,6 +552,9 @@ cleanup:
     if (hKey != INVALID_HANDLE_VALUE)
         RegCloseKey(hKey);
 
+    if (Buffer && !ret)
+        MyFree(Buffer);
+
     return ret;
 }