mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 14:36:01 +08:00
[COVERITY][SPOOLSS] Fix a resource leak
Unload the library pointed by hWinspool when the function fails. CID 1401149
This commit is contained in:
committed by
Hermès BÉLUSCA - MAÏTO
parent
d5b4570d23
commit
bd5fb32b79
@@ -227,8 +227,13 @@ SplInitializeWinSpoolDrv(PVOID* pTable)
|
||||
|
||||
// Verify that all calls succeeded.
|
||||
for (i = 0; i < 9; i++)
|
||||
{
|
||||
if (!pTable[i])
|
||||
{
|
||||
FreeLibrary(hWinspool);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user