Commit c98451f9 authored by Nikias Bassen's avatar Nikias Bassen

bplist: Plug memory leak in case parsing a dictionary key fails

parent e17a493d
......@@ -444,6 +444,7 @@ static plist_t parse_dict_node(struct bplist_data *bplist, const char** bnode, u
if (plist_get_data(key)->type != PLIST_STRING) {
PLIST_BIN_ERR("%s: dict entry %" PRIu64 ": invalid node type for key\n", __func__, j);
plist_free(key);
plist_free(node);
return NULL;
}
......
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