diff options
author | Hanno Böck <hanno@hboeck.de> | 2015-02-24 15:48:21 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2015-02-24 16:06:52 -0800 |
commit | b5d0a2017042598bab038574f9c44797d798a701 (patch) | |
tree | 53d2436dd5837ffd6a8a6f4d6f6f507c6fa088ec /vpxdec.c | |
parent | 6cf3031286ca2b20187406f5953a5ea1f9924388 (diff) | |
download | libvpx-b5d0a2017042598bab038574f9c44797d798a701.tar libvpx-b5d0a2017042598bab038574f9c44797d798a701.tar.gz libvpx-b5d0a2017042598bab038574f9c44797d798a701.tar.bz2 libvpx-b5d0a2017042598bab038574f9c44797d798a701.zip |
Fix a trivial memory leak
Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
Diffstat (limited to 'vpxdec.c')
-rw-r--r-- | vpxdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |