From cb4c69c4178c44319f61ae7e515d1874829dd9fb Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 30 Dec 2013 21:52:21 +0000 Subject: [PATCH] memory leak, Coverity CID 1748, Loganaden Velvindron --- usr.bin/fgen/fgen.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/fgen/fgen.l b/usr.bin/fgen/fgen.l index c75364d352c..261b929b9f0 100644 --- a/usr.bin/fgen/fgen.l +++ b/usr.bin/fgen/fgen.l @@ -1,5 +1,5 @@ %{ -/* $OpenBSD: fgen.l,v 1.9 2009/12/10 17:31:49 deraadt Exp $ */ +/* $OpenBSD: fgen.l,v 1.10 2013/12/30 21:52:21 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->name); free(alias); (void)printf( "EOF in alias definition\n"); return; -- 2.20.1