fix typo that leads to double frees

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@1018 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
sears 2010-08-18 18:06:59 +00:00
parent b894cebaf7
commit 0d471bb912

View file

@ -212,7 +212,7 @@ public:
~batchedRevalidatingIterator() { ~batchedRevalidatingIterator() {
for(int i = cur_off_; i < num_batched_; i++) { for(int i = cur_off_; i < num_batched_; i++) {
TUPLE::freetuple(next_ret_[cur_off_]); TUPLE::freetuple(next_ret_[i]);
} }
free(next_ret_); free(next_ret_);
// if(next_ret_) TUPLE::freetuple(next_ret_); // if(next_ret_) TUPLE::freetuple(next_ret_);