diff options
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/xml/libxml.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/xml/libxml.cpp b/src/utils/xml/libxml.cpp index c19255b24..b85e456f4 100644 --- a/src/utils/xml/libxml.cpp +++ b/src/utils/xml/libxml.cpp @@ -250,9 +250,16 @@ namespace XML xmlChar *const prop = XmlGetProp(node, name); if (XmlStrEqual(prop, "true")) + { + XmlFree(prop); return true; + } if (XmlStrEqual(prop, "false")) + { + XmlFree(prop); return false; + } + XmlFree(prop); return def; } |