opt: free test_ctx.string at the end.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 5 Jun 2012 12:32:51 +0000 (14:32 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Thu, 7 Jun 2012 20:13:59 +0000 (22:13 +0200)
Makes valgrind happy.

libavutil/opt.c

index 9af3fe4..cab453b 100644 (file)
@@ -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;