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:
Rahul Frias
2018-10-31 10:22:14 -07:00
parent c0144ac97f
commit 058b80f906

View File

@@ -116,6 +116,7 @@ class shared_ptr {
if (ptr_ != NULL) {
if (!RefCountDec(&control_block_->refcount_)) {
delete ptr_;
delete control_block_;
}
}
}