Skip to content

Commit

Permalink
eliminated leaks from index open/reopens
Browse files Browse the repository at this point in the history
  • Loading branch information
junkumar committed May 22, 2011
1 parent 0c1bdee commit 1c76e48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ix_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ RC IX_Manager::CloseIndex(IX_IndexHandle &ixh)
PF_PrintError(rc2);
return rc2;
}
// TODO - is there a cleaner way than reaching into innards like this ?
delete ixh.pfHandle;
ixh.~IX_IndexHandle();
ixh.pfHandle = NULL;
ixh.bFileOpen = false;
return 0;
Expand Down

0 comments on commit 1c76e48

Please sign in to comment.