call the destructor while memcpy is not safe in the pop_back() function of ObSEArrayImpl (#319)
This commit is contained in:
3
deps/oblib/src/lib/container/ob_se_array.h
vendored
3
deps/oblib/src/lib/container/ob_se_array.h
vendored
@ -478,6 +478,9 @@ void ObSEArrayImpl<T, LOCAL_ARRAY_SIZE, BlockAllocatorT, auto_free>::pop_back()
|
||||
{
|
||||
if (OB_UNLIKELY(count_ <= 0)) {
|
||||
} else {
|
||||
if (!is_memcpy_safe()) {
|
||||
data_[count_ - 1].~T();
|
||||
}
|
||||
--count_;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user