[DEVMGR]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 15 Nov 2014 12:09:14 +0000 (12:09 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 15 Nov 2014 12:09:14 +0000 (12:09 +0000)
* Plug a leak. CID 1105932.
CORE-7975

svn path=/trunk/; revision=65406

reactos/dll/win32/devmgr/hwpage.c

index 7895771..1d28dcc 100644 (file)
@@ -1065,6 +1065,7 @@ DeviceCreateHardwarePageEx(IN HWND hWndParent,
                                  (LPARAM)hpd);
         if (hWnd != NULL)
         {
+            HeapFree(GetProcessHeap(), 0, hpd);
             return hWnd;
         }
         else