From 0d471bb91276210be6a1c2c8d79c82ee56af826c Mon Sep 17 00:00:00 2001 From: sears Date: Wed, 18 Aug 2010 18:06:59 +0000 Subject: [PATCH] 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 --- memTreeComponent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memTreeComponent.h b/memTreeComponent.h index 70527f6..9ec3dc6 100644 --- a/memTreeComponent.h +++ b/memTreeComponent.h @@ -212,7 +212,7 @@ public: ~batchedRevalidatingIterator() { for(int i = cur_off_; i < num_batched_; i++) { - TUPLE::freetuple(next_ret_[cur_off_]); + TUPLE::freetuple(next_ret_[i]); } free(next_ret_); // if(next_ret_) TUPLE::freetuple(next_ret_);