From: mdw Date: Wed, 20 Aug 1997 16:22:59 +0000 (+0000) Subject: Patch memory leak. X-Git-Tag: 1.3.3~111 X-Git-Url: https://git.distorted.org.uk/~mdw/become/commitdiff_plain/8100c51dbd2114e89935ef6810a805f787eaa8f4 Patch memory leak. --- diff --git a/src/sym.c b/src/sym.c index a698382..e2c6d54 100644 --- a/src/sym.c +++ b/src/sym.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: sym.c,v 1.2 1997/08/04 10:24:25 mdw Exp $ + * $Id: sym.c,v 1.3 1997/08/20 16:22:59 mdw Exp $ * * Symbol table management * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: sym.c,v $ + * Revision 1.3 1997/08/20 16:22:59 mdw + * Patch memory leak. + * * Revision 1.2 1997/08/04 10:24:25 mdw * Sources placed under CVS control. * @@ -233,10 +236,12 @@ void sym_destroyTable(sym_table *t) p = t->a[i]; while (p) { q = p->next; + free(p->name); free(p); p = q; } } + free(t->a); } /* --- @sym_find@ --- *