mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-12 07:11:51 +00:00
[Coverity] Fix resource leaks in pdblocate
This commit is contained in:
1 parent
855c7179b7
commit
2d3c79c86e
1 file changed
+5
-1
@@ -533,6 +533,7 @@ AddrInfo GetAddr(wstring req)
|
||||
if(hr != S_OK)
|
||||
{
|
||||
pFunc->Release();
|
||||
SysFreeString(file);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -734,7 +735,10 @@ int WINAPI wWinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance,
|
||||
DWORD err = GetLastError();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(mod != NULL)
|
||||
FreeLibrary(mod);
|
||||
|
||||
CloseHandle(pipe);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user