shithub: libvpx

Download patch

ref: f835ab76082e8ea2e04901f1b9746c65e56f4218
parent: 04383393e47142f801eda822277e12b9214bc63a
author: Wan-Teh Chang <[email protected]>
date: Fri Dec 6 05:42:49 EST 2019

Fix argv leak on Unrecognized input file type err

Free argv (allocated by argv_dup) after the
"Unrecognized input file type" error.

Change-Id: I2b6273a1abca2ff8e51445fb15839bd993c41741

--- a/vpxdec.c
+++ b/vpxdec.c
@@ -722,6 +722,7 @@
 #if !CONFIG_WEBM_IO
     fprintf(stderr, "vpxdec was built without WebM container support.\n");
 #endif
+    free(argv);
     return EXIT_FAILURE;
   }