Commit bcdac7b4 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Fix a trivial memory leak"

parents 419ff135 b5d0a201
......@@ -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