Re: [Valgrind-users] Invalid read
On Mon, Jul 26, 2010 at 9:13 AM, Sato Takenori wrote: > I get the following "Invalid read error" on the part below. > > 103if(counter_->decrement() == 0){ > 104delete counter_; > 105if(pointee_) delete pointee_; > 106} > 107counter_ = src->counter_;
[Valgrind-users] Invalid read
Hi, I get the following "Invalid read error" on the part below. 103if(counter_->decrement() == 0){ 104delete counter_; 105if(pointee_) delete pointee_; 106} 107counter_ = src->counter_; 108pointee_ = src->pointee_; ==3581== Invalid read of