From 29c06dff208d77a551ed11c50e507addd6fdf3b7 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 25 Jan 2008 16:59:19 +0000 Subject: [PATCH] oleaut32: Fix big memory leak in xCall. Call IRpcChannelBuffer_FreeBuffer to free the buffer and other resources allocated by IRpcChannelBuffer_GetBuffer and IRpcChannelBuffer_SendReceive. --- dlls/oleaut32/tmarshal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 9649705bf9d..52c8e8a228e 100644 --- a/dlls/oleaut32/tmarshal.c +++ b/dlls/oleaut32/tmarshal.c @@ -1468,6 +1468,7 @@ xCall(LPVOID retptr, int method, TMProxyImpl *tpinfo /*, args */) hres = remoteresult; exit: + IRpcChannelBuffer_FreeBuffer(chanbuf,&msg); for (i = 0; i < nrofnames; i++) SysFreeString(names[i]); HeapFree(GetProcessHeap(),0,buf.base); -- 2.11.4.GIT