From bc147d80b5a608b8a0478041e5198093ecd767b8 Mon Sep 17 00:00:00 2001 From: Aaron Burghardt Date: Sun, 24 Aug 2014 21:11:36 -0400 Subject: Fixed memory leaks in new_xml_plist() and parse_real_node(). --- src/xplist.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/xplist.c') diff --git a/src/xplist.c b/src/xplist.c index 96539a6..a889cb5 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -120,9 +120,6 @@ static xmlDocPtr new_xml_plist(void) char *plist = strdup(plist_base); xmlDocPtr plist_xml = xmlParseMemory(plist, strlen(plist)); - if (!plist_xml) - return NULL; - free(plist); return plist_xml; -- cgit v1.1-32-gdbae