rpcrt4/tests: Only free string when function succeeded.

This commit is contained in:
André Hentschel 2011-07-30 16:55:29 +02:00 committed by Alexandre Julliard
parent 209acc5c89
commit f98369f21c
1 changed files with 1 additions and 2 deletions

View File

@ -283,8 +283,7 @@ todo_wine {
ok(level == RPC_C_AUTHN_LEVEL_PKT_PRIVACY, "expected RPC_C_AUTHN_LEVEL_PKT_PRIVACY, got %d\n", level);
ok(authnsvc == RPC_C_AUTHN_WINNT, "expected RPC_C_AUTHN_WINNT, got %d\n", authnsvc);
todo_wine ok(authzsvc == RPC_C_AUTHZ_NAME, "expected RPC_C_AUTHZ_NAME, got %d\n", authzsvc);
RpcStringFree(&principal);
if (status == RPC_S_OK) RpcStringFree(&principal);
status = RpcMgmtStopServerListening(NULL);
ok(status == RPC_S_OK, "RpcMgmtStopServerListening failed (%u)\n",