From: Wan-Teh Chang Date: Fri, 6 Dec 2019 18:42:49 +0000 (-0800) Subject: Fix argv leak on Unrecognized input file type err X-Git-Tag: v1.8.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f835ab76082e8ea2e04901f1b9746c65e56f4218;p=libvpx 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 --- diff --git a/vpxdec.c b/vpxdec.c index c60eb5c30..ad368a230 100644 --- 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; }