]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh almost added a leak today
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Feb 2009 03:13:30 +0000 (03:13 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 12 Feb 2009 03:13:30 +0000 (03:13 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11910 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_xml.c

index 5d9283c4a3beef69e15ab07b2a255e9f58586925..6d31de4bb284ac6ae7cbc00fb09b453729f62ddf 100644 (file)
@@ -1557,6 +1557,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate(const char *section,
                                *root = switch_xml_parse_str(x, strlen(x));
                                *node = *root;
                                switch_xml_free(xml);
+                               free(x);
                        } else {
                                *node = tag;
                                *root = xml;