Commit cf81d072 authored by Nikias Bassen's avatar Nikias Bassen

xplist: Plug another memory leak

Credit to OSS-Fuzz
parent 765f062a
...@@ -1265,6 +1265,9 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist) ...@@ -1265,6 +1265,9 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist)
free(path_item); free(path_item);
parent = ((node_t*)parent)->parent; parent = ((node_t*)parent)->parent;
if (!parent) {
goto err_out;
}
} }
free(tag); free(tag);
......
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