This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 40010b3586b0c54bfa5cd217096ccc59b92b9322
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 28 17:28:30 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 00:45:42 2026 +0000

    avfilter/vf_libopencv: free the shape values when read_shape_from_file() 
fails
    
    Fixes: memleak
    Found during review of the read_shape_from_file() fixes
---
 libavfilter/vf_libopencv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c
index 7888d8f18c..cdfa678860 100644
--- a/libavfilter/vf_libopencv.c
+++ b/libavfilter/vf_libopencv.c
@@ -225,7 +225,7 @@ static int parse_iplconvkernel(IplConvKernel **kernel, char 
*buf, void *log_ctx)
     else if (!strcmp(shape_str, "custom" )) {
         shape = CV_SHAPE_CUSTOM;
         if ((ret = read_shape_from_file(&cols, &rows, &values, shape_filename, 
log_ctx)) < 0)
-            return ret;
+            goto out;
     } else {
         av_log(log_ctx, AV_LOG_ERROR,
                "Shape unspecified or type '%s' unknown.\n", shape_str);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to