summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vpxdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/vpxdec.c b/vpxdec.c
index f99d1e437..59c982d87 100644
--- a/vpxdec.c
+++ b/vpxdec.c
@@ -718,9 +718,10 @@ int main_loop(int argc, const char **argv_) {
/* 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);