commit | b5d0a2017042598bab038574f9c44797d798a701 | [log] [tgz] |
---|---|---|
author | Hanno Böck <hanno@hboeck.de> | Tue Feb 24 15:48:21 2015 -0800 |
committer | Yaowu Xu <yaowu@google.com> | Tue Feb 24 16:06:52 2015 -0800 |
tree | 53d2436dd5837ffd6a8a6f4d6f6f507c6fa088ec | |
parent | 6cf3031286ca2b20187406f5953a5ea1f9924388 [diff] [blame] |
Fix a trivial memory leak Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
diff --git a/vpxdec.c b/vpxdec.c index f99d1e4..59c982d 100644 --- 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);