[xiph-commits] r18450 - trunk/vorbis-tools/oggdec
giles at svn.xiph.org
giles at svn.xiph.org
Thu Jul 12 14:57:27 PDT 2012
Author: giles
Date: 2012-07-12 14:57:27 -0700 (Thu, 12 Jul 2012)
New Revision: 18450
Modified:
trunk/vorbis-tools/oggdec/oggdec.c
Log:
Don't leak the output filename when it's '-'.
Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c 2012-07-12 21:23:06 UTC (rev 18449)
+++ trunk/vorbis-tools/oggdec/oggdec.c 2012-07-12 21:57:27 UTC (rev 18450)
@@ -382,11 +382,10 @@
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;
More information about the commits
mailing list