[FFmpeg-devel] [PATCH 2/3] opt: free test_ctx.string at the end.

Nicolas George nicolas.george at normalesup.org
Tue Jun 5 14:54:14 CEST 2012


Makes valgrind happy.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavutil/opt.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavutil/opt.c b/libavutil/opt.c
index 9af3fe4..cab453b 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -962,6 +962,7 @@ int main(void)
                 av_log(&test_ctx, AV_LOG_ERROR, "Error setting options string: '%s'\n", options[i]);
             printf("\n");
         }
+        av_freep(&test_ctx.string);
     }
 
     return 0;
-- 
1.7.10



More information about the ffmpeg-devel mailing list