Module: wine Branch: master Commit: 29c06dff208d77a551ed11c50e507addd6fdf3b7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=29c06dff208d77a551ed11c50e...
Author: Rob Shearman rob@codeweavers.com Date: Fri Jan 25 16:59:19 2008 +0000
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 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c index 9649705..52c8e8a 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);