From 910256d82cbf614e8718d44057a5142ceda0a2f0 Mon Sep 17 00:00:00 2001 From: Kishore Nallan Date: Sat, 4 Sep 2021 21:59:19 +0530 Subject: [PATCH] Fix valgrind warnings. --- src/index.cpp | 4 ++-- test/collection_manager_test.cpp | 1 + test/posting_list_test.cpp | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/index.cpp b/src/index.cpp index 871d0390..28135bc5 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -1326,7 +1326,7 @@ uint32_t Index::do_filtering(uint32_t** filter_ids_out, const std::vectornum_ids()); ASSERT_EQ(4, p1->num_ids()); + + free(c1); + delete p1; } TEST_F(PostingListTest, BlockIntersectionOnMixedLists) {