From b1bfad067bbc8a0a274281c028a773d0725d12bb Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 26 Oct 2006 12:38:54 +0100 Subject: [PATCH] ole32: Fix a memory leak on the error path of dispatch_rpc. --- dlls/ole32/rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/ole32/rpc.c b/dlls/ole32/rpc.c index 7bb6e9f683e..368a6ba7553 100644 --- a/dlls/ole32/rpc.c +++ b/dlls/ole32/rpc.c @@ -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); }