From 7bc9e425f166a9f7473f1526ff582c1e18ccf6e3 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 31 Jan 2008 14:45:59 +0000 Subject: [PATCH] rpcrt4: Fix memory leaks in the rpc tests. --- dlls/rpcrt4/tests/rpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/rpcrt4/tests/rpc.c b/dlls/rpcrt4/tests/rpc.c index e92b05778c3..ec7090282de 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); } } -- 2.11.4.GIT