diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-10 17:31:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-10 17:31:50 +0000 |
commit | 8bf9156c7e8835d332ec12e61e606ccc862bd13f (patch) | |
tree | 142c1a78b4a36bfcd407cd212953cd786fd10391 | |
parent | f2c6bdf301fd88fc0266c6a6ecad97a62c165baf (diff) |
memory leak, found by parfait, ok jsg
-rw-r--r-- | usr.bin/fgen/fgen.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fgen/fgen.l b/usr.bin/fgen/fgen.l index 859dc5bf7b5..c75364d352c 100644 --- a/usr.bin/fgen/fgen.l +++ b/usr.bin/fgen/fgen.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: fgen.l,v 1.8 2008/08/08 08:22:42 sobrado Exp $ */ +/* $OpenBSD: fgen.l,v 1.9 2009/12/10 17:31:49 deraadt Exp $ */ /* $NetBSD: fgen.l,v 1.12 2001/06/13 10:46:05 wiz Exp $ */ /* FLEX input for FORTH input file scanner */ /* @@ -1232,6 +1232,7 @@ tokenize(input) token = yylex(); if (token == NULL) { + free(alias); (void)printf( "EOF in alias definition\n"); return; } |