diff options
author | Underground78 <underground78@users.sourceforge.net> | 2016-01-09 13:34:08 +0300 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2016-01-14 23:53:51 +0300 |
commit | 04f2e5d36b89cdbaf13103f60d2819e707516be8 (patch) | |
tree | 7e1fbf4da620053c8fb2a232188dda74b2829bd4 | |
parent | 553c533fbc6b2e66fe9b5ad362ea568e31390cdf (diff) |
XmlRpcValue::structFromXml: Fix a memory leak.
Found with Coverity.
-rw-r--r-- | TimXmlRpc.cpp | 1 |
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; } |