summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTazyFoundSoup <gardendistrict0x0@outlook.com>2026-02-22 15:57:20 +1100
committerTazyFoundSoup <gardendistrict0x0@outlook.com>2026-02-22 15:57:20 +1100
commit2513704cd6374652ae2d28a0b75f136f2ba584bd (patch)
tree46bf1562d647e0fcac12ce20b613028ee0393597 /src
parent30b5750137ec08d0e5da43d782091ed9b6ac871f (diff)
fix(png): Do not set last error field in ctx after getting freed
Diffstat (limited to 'src')
-rw-r--r--src/format/image/png.c3
1 files changed, 0 insertions, 3 deletions
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;
}