ENH: fix possible free memory use
This commit is contained in:
parent
239fce5caa
commit
2b33498c03
|
@ -589,7 +589,10 @@ rpcCreate(xmlrpc_env * const envP,
|
|||
destroyCurlTransaction(rpcP->curlTransactionP);
|
||||
}
|
||||
if (envP->fault_occurred)
|
||||
{
|
||||
free(rpcP);
|
||||
rpcP = 0; /* set this to null as it is used later on */
|
||||
}
|
||||
}
|
||||
*rpcPP = rpcP;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue