aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-11-16 21:02:24 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-11-16 21:02:24 +0200
commit9b4ef43adf31250682625f8b482e659ea1e11413 (patch)
tree2c02ae0157398fd8902838bbbabdf4bac817998c /src
parent203601fb06c13472b9069cc139329174b2d4d253 (diff)
downloadgdbm-9b4ef43adf31250682625f8b482e659ea1e11413.tar.gz
gdbm-9b4ef43adf31250682625f8b482e659ea1e11413.tar.bz2
Minor fix
Diffstat (limited to 'src')
-rw-r--r--src/var.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/var.c b/src/var.c
index 792a42f..5a1d750 100644
--- a/src/var.c
+++ b/src/var.c
@@ -515,7 +515,10 @@ variables_free (void)
free (vp->v.string);
vp->v.string = NULL;
if (vp->freehook && vp->data)
- vp->freehook (vp->data);
+ {
+ vp->freehook (vp->data);
+ vp->data = NULL;
+ }
vp->flags &= ~VARF_SET;
}
}

Return to:

Send suggestions and report system problems to the System administrator.