From c74ee4ceffe2bfb5ac65852903d72720a79dda18 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 12 Sep 2025 20:47:57 +0200 Subject: [PATCH] swscale/ops_chain: Free correct pointer on error Reviewed-by: Niklas Haas Signed-off-by: Andreas Rheinhardt --- libswscale/ops_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/ops_chain.c b/libswscale/ops_chain.c index 80162507b0..ef768b4904 100644 --- a/libswscale/ops_chain.c +++ b/libswscale/ops_chain.c @@ -234,7 +234,7 @@ int ff_sws_op_compile_tables(const SwsOpTable *const tables[], int num_tables, ret = ff_sws_op_chain_append(chain, best->func, best->free, &priv); if (ret < 0) { if (best->free) - best->free(&priv); + best->free(priv.ptr); return ret; }