~mdw
/
become
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
063606f
)
Patch memory leak.
author
mdw
<mdw>
Wed, 20 Aug 1997 16:22:59 +0000
(16:22 +0000)
committer
mdw
<mdw>
Wed, 20 Aug 1997 16:22:59 +0000
(16:22 +0000)
src/sym.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sym.c
b/src/sym.c
index
a698382
..
e2c6d54
100644
(file)
--- a/
src/sym.c
+++ b/
src/sym.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Symbol table management
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: sym.c,v $
/*----- 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.
*
* 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;
p = t->a[i];
while (p) {
q = p->next;
+ free(p->name);
free(p);
p = q;
}
}
free(p);
p = q;
}
}
+ free(t->a);
}
/* --- @sym_find@ --- *
}
/* --- @sym_find@ --- *