Commit f8bb61cd57 for ffmpeg

commit f8bb61cd57a714b4eb8a9f8002dbb5214eed48c7
Author: Sungjoon Moon <sumoon@seoulsaram.org>
Date:   Thu Nov 12 13:53:45 2026 +0900

    swscale/ops_dispatch: fix leak on ERANGE in compile_single()

    Signed-off-by: Sungjoon Moon <sumoon@seoulsaram.org>

diff --git a/libswscale/ops_dispatch.c b/libswscale/ops_dispatch.c
index 129251daf1..3cfdb73f58 100644
--- a/libswscale/ops_dispatch.c
+++ b/libswscale/ops_dispatch.c
@@ -586,8 +586,10 @@ static int compile_single(const CompileArgs *args, const SwsOpList *ops,
     p->pixel_bits_out = rw_pixel_bits(write);
     p->palette_idx    = -1;
     p->num_blocks     = (dst->width + comp->block_size - 1) / comp->block_size;
-    if (p->num_blocks * comp->block_size < (unsigned) dst->width)
-        return AVERROR(ERANGE);
+    if (p->num_blocks * comp->block_size < (unsigned) dst->width) {
+        ret = AVERROR(ERANGE);
+        goto fail;
+    }

     SwsOpExec *exec = &p->exec_base;
     *exec = (SwsOpExec) {