From 52f4cbbc20417f86574560ed1cc65bb0b0bef9e1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 7 Aug 2008 14:12:28 +0000 Subject: [PATCH] 2008-08-07 Tatsuhiro Tsujikawa Fixed memory leak * src/IteratableChunkChecksumValidator.h --- ChangeLog | 5 +++++ src/IteratableChunkChecksumValidator.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1db6c88..98ddf601 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-07 Tatsuhiro Tsujikawa + + Fixed memory leak + * src/IteratableChunkChecksumValidator.h + 2008-08-07 Tatsuhiro Tsujikawa Fixed unmatched malloc/free. diff --git a/src/IteratableChunkChecksumValidator.h b/src/IteratableChunkChecksumValidator.h index 8517c378..8443fadd 100644 --- a/src/IteratableChunkChecksumValidator.h +++ b/src/IteratableChunkChecksumValidator.h @@ -50,7 +50,7 @@ class IteratableChunkChecksumValidator:public IteratableValidator private: SharedHandle _dctx; SharedHandle _pieceStorage; - BitfieldMan* _bitfield; + SharedHandle _bitfield; size_t _currentIndex; Logger* _logger; SharedHandle _ctx;