ref: bcdac7b4bef3b75796cf83e274a3e4e1e49cde24
parent: 419ff1352e5002a4ea3ef78a0bd78c7396eb8977
parent: b5d0a2017042598bab038574f9c44797d798a701
author: Yaowu Xu <[email protected]>
date: Wed Feb 25 05:26:44 EST 2015
Merge "Fix a trivial memory leak"
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -718,9 +718,10 @@
/* Handle non-option arguments */
fn = argv[0];
- if (!fn)
+ if (!fn) {
+ free(argv);
usage_exit();
-
+ }
/* Open file */
infile = strcmp(fn, "-") ? fopen(fn, "rb") : set_binary_mode(stdin);