oleaut32: Fix some memory leaks.
This commit is contained in:
parent
001d36b10e
commit
edbcf7c215
|
@ -967,6 +967,7 @@ deserialize_param(
|
|||
hres = xbuf_get(buf,(LPBYTE)str,len*sizeof(WCHAR));
|
||||
if (hres) {
|
||||
ERR("Failed to read BSTR.\n");
|
||||
HeapFree(GetProcessHeap(),0,str);
|
||||
return hres;
|
||||
}
|
||||
*bstr = CoTaskMemAlloc(sizeof(BSTR *));
|
||||
|
@ -997,6 +998,7 @@ deserialize_param(
|
|||
hres = xbuf_get(buf,(LPBYTE)str,len*sizeof(WCHAR));
|
||||
if (hres) {
|
||||
ERR("Failed to read BSTR.\n");
|
||||
HeapFree(GetProcessHeap(),0,str);
|
||||
return hres;
|
||||
}
|
||||
*arg = (DWORD)SysAllocStringLen(str,len);
|
||||
|
|
Loading…
Reference in New Issue