ENH: fix possible free memory use

This commit is contained in:
Bill Hoffman 2006-08-31 12:04:02 -04:00
parent 239fce5caa
commit 2b33498c03
1 changed files with 4 additions and 1 deletions

View File

@ -589,7 +589,10 @@ rpcCreate(xmlrpc_env * const envP,
destroyCurlTransaction(rpcP->curlTransactionP);
}
if (envP->fault_occurred)
free(rpcP);
{
free(rpcP);
rpcP = 0; /* set this to null as it is used later on */
}
}
*rpcPP = rpcP;
}