]> granicus.if.org Git - libvpx/commitdiff
Fix argv leak on Unrecognized input file type err
authorWan-Teh Chang <wtc@google.com>
Fri, 6 Dec 2019 18:42:49 +0000 (10:42 -0800)
committerWan-Teh Chang <wtc@google.com>
Fri, 6 Dec 2019 18:42:49 +0000 (10:42 -0800)
Free argv (allocated by argv_dup) after the
"Unrecognized input file type" error.

Change-Id: I2b6273a1abca2ff8e51445fb15839bd993c41741

vpxdec.c

index c60eb5c30ba463b521849ddf34f1208aa9f9cd04..ad368a230b8d923229c8c7dcbd4ef5080c3f1e88 100644 (file)
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -722,6 +722,7 @@ static int main_loop(int argc, const char **argv_) {
 #if !CONFIG_WEBM_IO
     fprintf(stderr, "vpxdec was built without WebM container support.\n");
 #endif
+    free(argv);
     return EXIT_FAILURE;
   }