diff --git a/versioning/BRM/brmshmimpl.cpp b/versioning/BRM/brmshmimpl.cpp index 82bef3b7c..7ab04d788 100644 --- a/versioning/BRM/brmshmimpl.cpp +++ b/versioning/BRM/brmshmimpl.cpp @@ -422,6 +422,10 @@ BRMManagedShmImplRBTree::BRMManagedShmImplRBTree(unsigned key, off_t size, bool BRMManagedShmImplRBTree::~BRMManagedShmImplRBTree() { + if (fShmSegment) + { + delete fShmSegment; + } } void BRMManagedShmImplRBTree::setReadOnly()