[Coverity] Fix resource leaks in pdblocate

This commit is contained in:
baldurk
2016-05-01 14:27:13 +02:00
parent 855c7179b7
commit 2d3c79c86e
+5 -1
View File
@@ -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;