projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bd3ef66
)
[SETUPAPI]
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 24 Oct 2015 10:00:24 +0000
(10:00 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sat, 24 Oct 2015 10:00:24 +0000
(10:00 +0000)
Don't leak memory
CID 716460
svn path=/trunk/; revision=69670
reactos/dll/win32/setupapi/devinst.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/setupapi/devinst.c
b/reactos/dll/win32/setupapi/devinst.c
index
93934e7
..
d4160b2
100644
(file)
--- a/
reactos/dll/win32/setupapi/devinst.c
+++ b/
reactos/dll/win32/setupapi/devinst.c
@@
-5777,6
+5777,8
@@
cleanup:
RegCloseKey(hEnumKey);
if (hKey != NULL && hKey != key)
RegCloseKey(hKey);
+ if (DriverKey)
+ HeapFree(GetProcessHeap(), 0, DriverKey);
return key;
}