mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[SETUPAPI]
Partly backport Wine commit: 4d796458d0ed517d45adc57a1aedaf1c3bdde232 "Avoid memory leaks (coverity)." by André Hentschel CID 716469 svn path=/trunk/; revision=69672
This commit is contained in:
parent
90198d9c56
commit
d3a401609e
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue