Commit 89891771 authored by Ralph Giles's avatar Ralph Giles

Don't leak the output filename when it's '-'.

svn path=/trunk/vorbis-tools/; revision=18450
parent 96e55e7c
......@@ -382,11 +382,10 @@ int main(int argc, char **argv)
char *infilename;
if(!strcmp(outfilename, "-")) {
free(outfilename);
outfilename = NULL;
outfile = open_output(NULL);
}
else
outfile = open_output(outfilename);
outfile = open_output(outfilename);
if(!outfile)
return 1;
......
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