diff options
author | Nikias Bassen | 2017-04-02 02:08:41 +0200 |
---|---|---|
committer | Nikias Bassen | 2017-04-02 02:08:41 +0200 |
commit | cf81d07289d7200206ecf23e2886b4b3878e7bc5 (patch) | |
tree | 45857f58abfc5805828d5123d09bcd2a799f747c /src/xplist.c | |
parent | 765f062a4563901ecf9881ac541fc248aa30d44d (diff) | |
download | libplist-cf81d07289d7200206ecf23e2886b4b3878e7bc5.tar.gz libplist-cf81d07289d7200206ecf23e2886b4b3878e7bc5.tar.bz2 |
xplist: Plug another memory leak
Credit to OSS-Fuzz
Diffstat (limited to 'src/xplist.c')
-rw-r--r-- | src/xplist.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c index f896030..a6737fb 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -1265,6 +1265,9 @@ static void node_from_xml(parse_ctx ctx, plist_t *plist) free(path_item); parent = ((node_t*)parent)->parent; + if (!parent) { + goto err_out; + } } free(tag); |