Rob Shearman : rpcrt4: Fix a memory leak in the cstub tests.
Alexandre Julliard
julliard at winehq.org
Wed Jan 9 07:02:07 CST 2008
Module: wine
Branch: master
Commit: 492947aa0275bb564a90a081ab97f046ae0f6132
URL: http://source.winehq.org/git/wine.git/?a=commit;h=492947aa0275bb564a90a081ab97f046ae0f6132
Author: Rob Shearman <rob at codeweavers.com>
Date: Wed Jan 9 10:33:47 2008 +0000
rpcrt4: Fix a memory leak in the cstub tests.
---
dlls/rpcrt4/tests/cstub.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/tests/cstub.c b/dlls/rpcrt4/tests/cstub.c
index 6a38397..a47fa6e 100644
--- a/dlls/rpcrt4/tests/cstub.c
+++ b/dlls/rpcrt4/tests/cstub.c
@@ -924,6 +924,8 @@ static void test_delegating_Invoke(IPSFactoryBuffer *ppsf)
ok(*(DWORD*)msg.Buffer == 0xabcdef, "buf[0] %08x\n", *(DWORD*)msg.Buffer);
ok(*((DWORD*)msg.Buffer + 1) == S_OK, "buf[1] %08x\n", *((DWORD*)msg.Buffer + 1));
}
+ /* free the buffer allocated by delegating_invoke_chan_get_buffer */
+ HeapFree(GetProcessHeap(), 0, msg.Buffer);
IRpcStubBuffer_Release(pstub);
}
More information about the wine-cvs
mailing list