mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 21:10:42 +00:00
[Coverity] Fix resource leaks in pdblocate
This commit is contained in:
@@ -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