summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2019-12-06 10:42:49 -0800
committerWan-Teh Chang <wtc@google.com>2019-12-06 10:42:49 -0800
commitf835ab76082e8ea2e04901f1b9746c65e56f4218 (patch)
tree413d36ec73929af80cbf84380dfb6eff68058ded
parent04383393e47142f801eda822277e12b9214bc63a (diff)
downloadlibvpx-f835ab76082e8ea2e04901f1b9746c65e56f4218.tar.gz
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
-rw-r--r--vpxdec.c1
1 files changed, 1 insertions, 0 deletions
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;
}