Partner (Amazon) reported a memory leak
[ Merge of http://go/wvgerrit/64682 ] Looks like we do not delete control_block_ Bug: 117126556 Test: WV unit/integration tests Change-Id: If0b4db163276bbf016bb81ed7e8ef56fa66ea30e
This commit is contained in:
@@ -116,6 +116,7 @@ class shared_ptr {
|
||||
if (ptr_ != NULL) {
|
||||
if (!RefCountDec(&control_block_->refcount_)) {
|
||||
delete ptr_;
|
||||
delete control_block_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user