diff options
| author | 2017-04-02 02:08:41 +0200 | |
|---|---|---|
| committer | 2017-04-02 02:08:41 +0200 | |
| commit | cf81d07289d7200206ecf23e2886b4b3878e7bc5 (patch) | |
| tree | 45857f58abfc5805828d5123d09bcd2a799f747c /src | |
| 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')
| -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) | |||
| 1265 | free(path_item); | 1265 | free(path_item); |
| 1266 | 1266 | ||
| 1267 | parent = ((node_t*)parent)->parent; | 1267 | parent = ((node_t*)parent)->parent; |
| 1268 | if (!parent) { | ||
| 1269 | goto err_out; | ||
| 1270 | } | ||
| 1268 | } | 1271 | } |
| 1269 | 1272 | ||
| 1270 | free(tag); | 1273 | free(tag); |
