From cc92780784fd4b985586083c7eb0773a34af944c Mon Sep 17 00:00:00 2001 From: Matej Matuska <75834032+matejmatuska@users.noreply.github.com> Date: Thu, 5 Sep 2024 11:47:50 +0200 Subject: [PATCH] Free allocated memory in GDBM_::fill_database --- db.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db.cc b/db.cc index 2ccd813..8b06671 100644 --- a/db.cc +++ b/db.cc @@ -93,6 +93,8 @@ bool GDBM_::fill_database(DB_ * old_database){ if (status != 0) return false; } + free(data_db); + free(key_db); return true; }