Skip to content

Commit

Permalink
bplus: fix memory leak, destroy head of compacted
Browse files Browse the repository at this point in the history
  • Loading branch information
indutny committed Jan 27, 2012
1 parent 353f5e5 commit 09b63cf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bplus.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ int bp_compact(bp_db_t* tree) {
if (ret != BP_OK) return ret;

ret = bp__tree_write_head((bp__writer_t*) &compacted, NULL);
compacted.head.page = NULL;
if (ret != BP_OK) return ret;

bp__rwlock_wrlock(&tree->rwlock);
Expand Down

0 comments on commit 09b63cf

Please sign in to comment.