summaryrefslogtreecommitdiffstats
path: root/src/xplist.c
diff options
context:
space:
mode:
authorGravatar Aaron Burghardt2014-08-24 21:11:36 -0400
committerGravatar Aaron Burghardt2014-08-25 06:07:32 -0400
commitbc147d80b5a608b8a0478041e5198093ecd767b8 (patch)
tree67650fcc5aed8aab704325acd37f0fde88e05542 /src/xplist.c
parent83650b30ad5ef6a4de0bb988bd653298db5eba9a (diff)
downloadlibplist-bc147d80b5a608b8a0478041e5198093ecd767b8.tar.gz
libplist-bc147d80b5a608b8a0478041e5198093ecd767b8.tar.bz2
Fixed memory leaks in new_xml_plist() and parse_real_node().
Diffstat (limited to 'src/xplist.c')
-rw-r--r--src/xplist.c3
1 files changed, 0 insertions, 3 deletions
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;