From 61c266d72f26a72c72feae12b2ceb23da09c9fae Mon Sep 17 00:00:00 2001 From: Nicolas George <nicolas.george@normalesup.org> Date: Tue, 5 Jun 2012 14:32:51 +0200 Subject: [PATCH] opt: free test_ctx.string at the end. Makes valgrind happy. --- libavutil/opt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/opt.c b/libavutil/opt.c index 9af3fe47cb9..cab453bd672 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; -- GitLab