Commit 7bc9e425 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

rpcrt4: Fix memory leaks in the rpc tests.

parent 59ab0cf3
...@@ -112,6 +112,7 @@ static void UuidConversionAndComparison(void) { ...@@ -112,6 +112,7 @@ static void UuidConversionAndComparison(void) {
ok( (UuidFromStringA((unsigned char*)str, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID String\n" ); 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. */ str[i2] = x; /* change it back so remaining tests are interesting. */
} }
RpcStringFree((unsigned char **)&str);
} }
/* Uuid to String to Uuid (wchar) */ /* Uuid to String to Uuid (wchar) */
...@@ -132,6 +133,7 @@ static void UuidConversionAndComparison(void) { ...@@ -132,6 +133,7 @@ static void UuidConversionAndComparison(void) {
ok( (UuidFromStringW(wstr, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID WString\n" ); ok( (UuidFromStringW(wstr, &Uuid1) == RPC_S_INVALID_STRING_UUID), "Invalid UUID WString\n" );
wstr[i2] = wx; /* change it back so remaining tests are interesting. */ wstr[i2] = wx; /* change it back so remaining tests are interesting. */
} }
RpcStringFreeW(&wstr);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment