sfnt2fon: Don't leak output name if specified multiple times (Coverity)
André Hentschel
nerv at dawncrow.de
Mon Nov 16 15:36:40 CST 2015
Signed-off-by: André Hentschel <nerv at dawncrow.de>
---
CID 1195731
tools/sfnt2fon/sfnt2fon.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/sfnt2fon/sfnt2fon.c b/tools/sfnt2fon/sfnt2fon.c
index 7612bc2..f825ae4 100644
--- a/tools/sfnt2fon/sfnt2fon.c
+++ b/tools/sfnt2fon/sfnt2fon.c
@@ -654,6 +654,7 @@ static char **parse_options( int argc, char **argv )
option_defchar = atoi( optarg );
break;
case 'o':
+ free( option_output );
option_output = strdup( optarg );
break;
case 'q':
--
1.9.1
More information about the wine-patches
mailing list