From 8bf9156c7e8835d332ec12e61e606ccc862bd13f Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 10 Dec 2009 17:31:50 +0000 Subject: memory leak, found by parfait, ok jsg --- usr.bin/fgen/fgen.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr.bin/fgen') 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; } -- cgit v1.2.3