Rob Shearman : rpcrt4: Fix memory leaks in the rpc tests.

Alexandre Julliard julliard at winehq.org
Mon Feb 4 08:43:06 CST 2008


Module: wine
Branch: master
Commit: 7bc9e425f166a9f7473f1526ff582c1e18ccf6e3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=7bc9e425f166a9f7473f1526ff582c1e18ccf6e3

Author: Rob Shearman <rob at 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);
     }
 }
 




More information about the wine-cvs mailing list