Browse code

avfilter/can_merge_formats: fix memleak

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>

Michael Niedermayer authored on 2013/07/25 23:54:04
Showing 1 changed files
... ...
@@ -390,6 +390,7 @@ static int can_merge_formats(AVFilterFormats *a_arg,
390 390
     }
391 391
     if (ret) {
392 392
         av_freep(&ret->formats);
393
+        av_freep(&ret->refs);
393 394
         av_freep(&ret);
394 395
         return 1;
395 396
     } else {