rpcrt4: Fix memory leaks in the rpc tests.

This commit is contained in:
Rob Shearman 2008-01-31 14:45:59 +00:00 committed by Alexandre Julliard
parent 59ab0cf362
commit 7bc9e425f1
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}