Commit b5d0a201 authored by hanno's avatar hanno Committed by Yaowu Xu

Fix a trivial memory leak

Change-Id: I1108d720bb3b30586b128dd01ce608e1e62b1756
parent 6cf30312
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment