projects
/
platform
/
upstream
/
libvpx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf3031
)
Fix a trivial memory leak
author
Hanno Böck
<hanno@hboeck.de>
Tue, 24 Feb 2015 23:48:21 +0000
(15:48 -0800)
committer
Yaowu Xu
<yaowu@google.com>
Wed, 25 Feb 2015 00:06:52 +0000
(16:06 -0800)
Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
vpxdec.c
patch
|
blob
|
history
diff --git
a/vpxdec.c
b/vpxdec.c
index
f99d1e4
..
59c982d
100644
(file)
--- 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);