From 18d4f85a5fec9171a978d9d6317ea658a55648b6 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 11 Jan 2023 19:39:07 +0100 Subject: oplist: Plug another memory leak occurring on parse error Credit to OSS-Fuzz --- src/oplist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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) ctx->pos++; } if (ctx->pos >= ctx->end) { + plist_free_data(data); PLIST_OSTEP_ERR("EOF while parsing quoted string at offset %ld\n", ctx->pos - ctx->start); ctx->err++; goto err_out; -- cgit v1.1-32-gdbae