Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/drtimcooper/XmlRpc4Win.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2016-01-09 13:34:08 +0300
committerUnderground78 <underground78@users.sourceforge.net>2016-01-14 23:53:51 +0300
commit04f2e5d36b89cdbaf13103f60d2819e707516be8 (patch)
tree7e1fbf4da620053c8fb2a232188dda74b2829bd4
parent553c533fbc6b2e66fe9b5ad362ea568e31390cdf (diff)
XmlRpcValue::structFromXml: Fix a memory leak.
Found with Coverity.
-rw-r--r--TimXmlRpc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/TimXmlRpc.cpp b/TimXmlRpc.cpp
index dccbbe9..bae234e 100644
--- a/TimXmlRpc.cpp
+++ b/TimXmlRpc.cpp
@@ -1118,6 +1118,7 @@ void XmlRpcValue::structFromXml(const char* &s)
XmlRpcValue val;
val.fromXml(s);
if ( ! val.valid()) {
+ free(name);
invalidate();
return;
}