summaryrefslogtreecommitdiff
path: root/bin/ksh/table.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1999-01-10 17:55:04 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1999-01-10 17:55:04 +0000
commit72cf5c5e2022b91fc486d3ef569034cbcbdeb2a8 (patch)
tree4298b1cf3a93f5de208765ff3c2c2c4884c7da21 /bin/ksh/table.c
parent1494c2efdc94109bcd53d3092332b170ed6b8d6d (diff)
sync with pdksh-unstable-5.2.13.6
Diffstat (limited to 'bin/ksh/table.c')
-rw-r--r--bin/ksh/table.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/ksh/table.c b/bin/ksh/table.c
index a390c172c77..91b33bc96c5 100644
--- a/bin/ksh/table.c
+++ b/bin/ksh/table.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: table.c,v 1.4 1997/06/19 13:58:47 kstailey Exp $ */
+/* $OpenBSD: table.c,v 1.5 1999/01/10 17:55:03 millert Exp $ */
/*
* dynamic hashed associative table for commands and variables
@@ -55,7 +55,7 @@ texpand(tp, nsize)
if (otblp == NULL)
return;
for (i = 0; i < osize; i++)
- if ((tblp = otblp[i]) != NULL)
+ if ((tblp = otblp[i]) != NULL) {
if ((tblp->flag&DEFINED)) {
for (p = &ntblp[hash(tblp->name)
& (tp->size-1)];
@@ -67,6 +67,7 @@ texpand(tp, nsize)
} else if (!(tblp->flag & FINUSE)) {
afree((void*)tblp, tp->areap);
}
+ }
afree((void*)otblp, tp->areap);
}