Commit bc147d80 authored by Aaron Burghardt's avatar Aaron Burghardt

Fixed memory leaks in new_xml_plist() and parse_real_node().

parent 83650b30
......@@ -251,6 +251,7 @@ static plist_t parse_real_node(char *bnode, uint8_t size)
data->realval = *(double *) buf;
break;
default:
free(buf);
free(data);
return NULL;
}
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment