summaryrefslogtreecommitdiff
path: root/usr.bin/yacc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 01:16:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-08-12 01:16:34 +0000
commitd0220586d828de325ca608aebba2263a7af0f0c4 (patch)
tree288b89d3842a4e28522c359ab33e699a6f927372 /usr.bin/yacc
parenta59514a41f6cd63de52f861cd19a84c90c6a3540 (diff)
plug memory leak; Patrick Latifi
Diffstat (limited to 'usr.bin/yacc')
-rw-r--r--usr.bin/yacc/symtab.c5
1 files changed, 3 insertions, 2 deletions
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);
}
}