summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 5fafed2..6a176a4 100644
--- a/hash.c
+++ b/hash.c
@@ -195,6 +195,7 @@ extern void delete_var(char *s, bool stack) {
}
} else { /* needs to be removed from the hash table */
efree(v);
+ vp[h].p = NULL;
efree(vp[h].name);
if (vp[(h+1)&(vsize-1)].name == NULL) {
--vused;