[WINESYNC] setupapi: Avoid memory leaks (coverity).

wine commit id 4d796458d0ed517d45adc57a1aedaf1c3bdde232 by André Hentschel <nerv@dawncrow.de>
This commit is contained in:
winesync 2023-09-28 20:11:50 +02:00 committed by Hermès Bélusca-Maïto
parent f7fb65430f
commit c11712eaa7
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 6 additions and 2 deletions

View file

@ -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)

View file

@ -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