aboutsummaryrefslogtreecommitdiff
path: root/src/recover.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2018-05-30 10:07:39 +0300
committerSergey Poznyakoff <gray@gnu.org>2018-05-30 10:07:39 +0300
commit5e2333e8119113c729874982eca32941162fe811 (patch)
tree45b37bebcda1dd593da3f28e5829ebf4a0b275f3 /src/recover.c
parenta2528b04a987bdbff4763edd2258622ad3141024 (diff)
downloadgdbm-5e2333e8119113c729874982eca32941162fe811.tar.gz
gdbm-5e2333e8119113c729874982eca32941162fe811.tar.bz2
Fix memory leaks in handling history (gdbmtool) and in gdbm_recover
Diffstat (limited to 'src/recover.c')
-rw-r--r--src/recover.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/recover.c b/src/recover.c
index 8f05f71..074c76f 100644
--- a/src/recover.c
+++ b/src/recover.c
@@ -168,6 +168,7 @@ _gdbm_finish_transfer (GDBM_FILE dbf, GDBM_FILE new_dbf,
dbf->bucket_changed = new_dbf->bucket_changed;
dbf->second_changed = new_dbf->second_changed;
+ free (new_dbf->name);
free (new_dbf);
#if HAVE_MMAP

Return to:

Send suggestions and report system problems to the System administrator.