summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-08-31 16:04:02 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-08-31 16:04:02 (GMT)
commit2b33498c03877157faaacaa06f1a5e865b7d8537 (patch)
treecc74cf0bdea69ed512459d2b3394bd337ce87779 /Utilities
parent239fce5caa59daeaea830aa38e0cb576599221da (diff)
downloadCMake-2b33498c03877157faaacaa06f1a5e865b7d8537.zip
CMake-2b33498c03877157faaacaa06f1a5e865b7d8537.tar.gz
CMake-2b33498c03877157faaacaa06f1a5e865b7d8537.tar.bz2
ENH: fix possible free memory use
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;
}