projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ec1eda
)
[SYSDM]
author
Pierre Schweitzer
<pierre@reactos.org>
Thu, 29 Dec 2011 13:20:18 +0000
(13:20 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Thu, 29 Dec 2011 13:20:18 +0000
(13:20 +0000)
Fix memory leak
svn path=/trunk/; revision=54778
reactos/dll/cpl/sysdm/hardprof.c
patch
|
blob
|
history
diff --git
a/reactos/dll/cpl/sysdm/hardprof.c
b/reactos/dll/cpl/sysdm/hardprof.c
index
dec9b53
..
98876fe
100644
(file)
--- a/
reactos/dll/cpl/sysdm/hardprof.c
+++ b/
reactos/dll/cpl/sysdm/hardprof.c
@@
-207,7
+207,10
@@
GetProfiles(HWND hwndDlg)
return FALSE;
if (!GetProfileCount(&pProfileData->dwProfileCount))
+ {
+ HeapFree(pProfileData, 0, GetProcessHeap());
return FALSE;
+ }
pProfileData->pProfiles = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY,
pProfileData->dwProfileCount * sizeof(PROFILE));