summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmxmlrpc/xmlrpc_curl_transport.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Utilities/cmxmlrpc/xmlrpc_curl_transport.c b/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
index 1190908..15477ce 100644
--- a/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
+++ b/Utilities/cmxmlrpc/xmlrpc_curl_transport.c
@@ -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;
}