From 2513704cd6374652ae2d28a0b75f136f2ba584bd Mon Sep 17 00:00:00 2001 From: TazyFoundSoup Date: Sun, 22 Feb 2026 15:57:20 +1100 Subject: fix(png): Do not set last error field in ctx after getting freed --- src/format/image/png.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/format/image/png.c b/src/format/image/png.c index 3aaaf69..f15a91d 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -57,9 +57,6 @@ ff_result ff_open_png(ff_stream *stream, ff_png_ctx **out_ctx) if (res != FF_RESULT_OK) { ff_dprintf("png: validation failed (%d)\n", res); free(ctx); - ctx->last_error = res; - - ctx->last_error = res; return res; } -- cgit v1.2.3