mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix memory leak
Summary: There is a memory leak because TransformRepFactory does not delete its SliceTransform pointer. This patch adds a delete to the destructor. Test Plan: make check make valgrind_check Reviewers: dhruba, emayanke, haobo Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D12513
This commit is contained in:
@@ -149,7 +149,8 @@ class PrefixHashRep : public TransformRep {
|
||||
public:
|
||||
PrefixHashRep(const KeyComparator& compare, Arena* arena,
|
||||
const SliceTransform* transform, size_t bucket_size,
|
||||
size_t num_locks) : TransformRep(compare, arena, transform,
|
||||
size_t num_locks)
|
||||
: TransformRep(compare, arena, transform,
|
||||
bucket_size, num_locks) { }
|
||||
|
||||
virtual std::shared_ptr<MemTableRep::Iterator> GetPrefixIterator(
|
||||
|
||||
Reference in New Issue
Block a user