diff options
| author | 2023-01-11 19:39:07 +0100 | |
|---|---|---|
| committer | 2023-01-11 19:39:07 +0100 | |
| commit | 18d4f85a5fec9171a978d9d6317ea658a55648b6 (patch) | |
| tree | 778b745631f400af537a4510f89e427add0ae595 /src/oplist.c | |
| parent | 12a2bc0578d148dcd03d26a3a1b33bccaecfdf33 (diff) | |
| download | libplist-18d4f85a5fec9171a978d9d6317ea658a55648b6.tar.gz libplist-18d4f85a5fec9171a978d9d6317ea658a55648b6.tar.bz2 | |
oplist: Plug another memory leak occurring on parse error
Credit to OSS-Fuzz
Diffstat (limited to 'src/oplist.c')
| -rw-r--r-- | src/oplist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oplist.c b/src/oplist.c index 168c921..0ad1d1c 100644 --- a/src/oplist.c +++ b/src/oplist.c | |||
| @@ -742,6 +742,7 @@ static int node_from_openstep(parse_ctx ctx, plist_t *plist) | |||
| 742 | ctx->pos++; | 742 | ctx->pos++; |
| 743 | } | 743 | } |
| 744 | if (ctx->pos >= ctx->end) { | 744 | if (ctx->pos >= ctx->end) { |
| 745 | plist_free_data(data); | ||
| 745 | PLIST_OSTEP_ERR("EOF while parsing quoted string at offset %ld\n", ctx->pos - ctx->start); | 746 | PLIST_OSTEP_ERR("EOF while parsing quoted string at offset %ld\n", ctx->pos - ctx->start); |
| 746 | ctx->err++; | 747 | ctx->err++; |
| 747 | goto err_out; | 748 | goto err_out; |
