ole32: Fix a memory leak on the error path of dispatch_rpc.

This commit is contained in:
Rob Shearman 2006-10-26 12:38:54 +01:00 committed by Alexandre Julliard
parent 7f71545835
commit b1bfad067b
1 changed files with 1 additions and 0 deletions

View File

@ -547,6 +547,7 @@ static void __RPC_STUB dispatch_rpc(RPC_MESSAGE *msg)
if (hr != S_OK)
{
ERR("no apartment found for ipid %s\n", debugstr_guid(&ipid));
HeapFree(GetProcessHeap(), 0, params);
return RpcRaiseException(hr);
}