From f835ab76082e8ea2e04901f1b9746c65e56f4218 Mon Sep 17 00:00:00 2001 From: Wan-Teh Chang Date: Fri, 6 Dec 2019 10:42:49 -0800 Subject: [PATCH] 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 --- vpxdec.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.40.0