summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2025-09-12 20:47:57 +0200
committerAndreas Rheinhardt <[email protected]>2025-09-12 22:41:24 +0200
commitc74ee4ceffe2bfb5ac65852903d72720a79dda18 (patch)
tree73267e564a64e28d2478a90b29f68df3af11f5a3
parent6384254db203bea90b57b0f4dd8f32726a22a249 (diff)
swscale/ops_chain: Free correct pointer on error
Reviewed-by: Niklas Haas <[email protected]> Signed-off-by: Andreas Rheinhardt <[email protected]>
-rw-r--r--libswscale/ops_chain.c2
1 files changed, 1 insertions, 1 deletions
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;
}