From d0220586d828de325ca608aebba2263a7af0f0c4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 12 Aug 2003 01:16:34 +0000 Subject: plug memory leak; Patrick Latifi --- usr.bin/yacc/symtab.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.bin/yacc') diff --git a/usr.bin/yacc/symtab.c b/usr.bin/yacc/symtab.c index 2eece0d509e..0f33358f1fb 100644 --- a/usr.bin/yacc/symtab.c +++ b/usr.bin/yacc/symtab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: symtab.c,v 1.9 2003/06/19 16:34:53 pvalchev Exp $ */ +/* $OpenBSD: symtab.c,v 1.10 2003/08/12 01:16:33 millert Exp $ */ /* $NetBSD: symtab.c,v 1.4 1996/03/19 03:21:48 jtc Exp $ */ /* @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)symtab.c 5.3 (Berkeley) 6/1/90"; #else -static char rcsid[] = "$OpenBSD: symtab.c,v 1.9 2003/06/19 16:34:53 pvalchev Exp $"; +static char rcsid[] = "$OpenBSD: symtab.c,v 1.10 2003/08/12 01:16:33 millert Exp $"; #endif #endif /* not lint */ @@ -155,6 +155,7 @@ free_symbols(void) for (p = first_symbol; p; p = q) { q = p->next; + FREE(p->name); FREE(p); } } -- cgit v1.2.3