mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[WINESYNC] setupapi: Avoid memory leaks (coverity).
wine commit id 4d796458d0ed517d45adc57a1aedaf1c3bdde232 by André Hentschel <nerv@dawncrow.de>
This commit is contained in:
parent
f7fb65430f
commit
c11712eaa7
2 changed files with 6 additions and 2 deletions
|
@ -1330,7 +1330,11 @@ BOOL WINAPI SetupInstallFileExW( HINF hinf, PINFCONTEXT inf_context, PCWSTR sour
|
|||
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)
|
||||
|
|
|
@ -3,4 +3,4 @@ files:
|
|||
dlls/setupapi/queue.c: dll/win32/setupapi/queue.c
|
||||
dlls/setupapi/stringtable.c: dll/win32/setupapi/stringtable.c
|
||||
tags:
|
||||
wine: 9097fa132e56cc542fa3ea77706fea79353d2f4a
|
||||
wine: 4d796458d0ed517d45adc57a1aedaf1c3bdde232
|
||||
|
|
Loading…
Reference in a new issue