Module: wine Branch: master Commit: 7bc9e425f166a9f7473f1526ff582c1e18ccf6e3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7bc9e425f166a9f7473f1526ff...
Author: Rob Shearman rob@codeweavers.com Date: Thu Jan 31 14:45:59 2008 +0000
rpcrt4: Fix memory leaks in the rpc tests.
---
dlls/rpcrt4/tests/rpc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c index e92b057..ec70902 100644 --- a/dlls/rpcrt4/tests/rpc.c +++ b/dlls/rpcrt4/tests/rpc.c @@ -112,6 +112,7 @@ static void UuidConversionAndComparison(void) { ok( (UuidFromStringA((unsigned char*)str, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID String\n" ); str[i2] = x; /* change it back so remaining tests are interesting. */ } + RpcStringFree((unsigned char **)&str); }
/* Uuid to String to Uuid (wchar) */ @@ -132,6 +133,7 @@ static void UuidConversionAndComparison(void) { ok( (UuidFromStringW(wstr, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID WString\n" ); wstr[i2] = wx; /* change it back so remaining tests are interesting. */ } + RpcStringFreeW(&wstr); } }