[FFmpeg-cvslog] opt: free test_ctx.string at the end.

Nicolas George git at videolan.org
Thu Jun 7 22:26:22 CEST 2012


ffmpeg | branch: master | Nicolas George <nicolas.george at normalesup.org> | Tue Jun  5 14:32:51 2012 +0200| [61c266d72f26a72c72feae12b2ceb23da09c9fae] | committer: Nicolas George

opt: free test_ctx.string at the end.

Makes valgrind happy.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=61c266d72f26a72c72feae12b2ceb23da09c9fae
---

 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;



More information about the ffmpeg-cvslog mailing list