Skip to content

Commit 9622d8f

Browse files
authored
hot fix definate mem_leaks (#440)
1 parent fee17e6 commit 9622d8f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/abstract_data_store.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ template <typename data_t> class AbstractDataStore
1818
public:
1919
AbstractDataStore(const location_t capacity, const size_t dim);
2020

21-
// virtual ~AbstractDataStore() = default;
21+
virtual ~AbstractDataStore() = default;
2222

2323
// Return number of points returned
2424
virtual location_t load(const std::string &filename) = 0;

include/abstract_graph_store.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class AbstractGraphStore
1818
{
1919
}
2020

21+
virtual ~AbstractGraphStore() = default;
22+
2123
// returns tuple of <nodes_read, start, num_frozen_points>
2224
virtual std::tuple<uint32_t, uint32_t, size_t> load(const std::string &index_path_prefix,
2325
const size_t num_points) = 0;

0 commit comments

Comments
 (0)