projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90198d9
)
[SETUPAPI]
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 24 Oct 2015 10:14:21 +0000
(10:14 +0000)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sat, 24 Oct 2015 10:14:21 +0000
(10:14 +0000)
Partly backport Wine commit:
4d796458d0ed517d45adc57a1aedaf1c3bdde232
"Avoid memory leaks (coverity)." by André Hentschel
CID 716469
svn path=/trunk/; revision=69672
reactos/dll/win32/setupapi/queue.c
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/setupapi/queue.c
b/reactos/dll/win32/setupapi/queue.c
index
d10f1e0
..
6848868
100644
(file)
--- a/
reactos/dll/win32/setupapi/queue.c
+++ b/
reactos/dll/win32/setupapi/queue.c
@@
-1216,7
+1216,11
@@
BOOL WINAPI SetupInstallFileW( HINF hinf, PINFCONTEXT inf_context, PCWSTR source
SetLastError( ERROR_NOT_ENOUGH_MEMORY );
return FALSE;
}
- if (!SetupGetStringFieldW( inf_context, 1, inf_source, len, NULL )) return FALSE;
+ if (!SetupGetStringFieldW( inf_context, 1, inf_source, len, NULL ))
+ {
+ HeapFree( GetProcessHeap(), 0, inf_source );
+ return FALSE;
+ }
source = inf_source;
}
else if (!source)