Skip to content

Commit

Permalink
Free allocated memory in GDBM_::fill_database
Browse files Browse the repository at this point in the history
  • Loading branch information
matejmatuska committed Sep 5, 2024
1 parent c3ff6d1 commit cc92780
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ bool GDBM_::fill_database(DB_ * old_database){
if (status != 0)
return false;
}
free(data_db);
free(key_db);
return true;
}

Expand Down

0 comments on commit cc92780

Please sign in to comment.