Skip to content

Commit 9bb0cf0

Browse files
authored
Fix memory leak (#497)
1 parent 337d0d5 commit 9bb0cf0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/abstract_data_store.h

+1-1
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

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class AbstractGraphStore
1818
{
1919
}
2020

21+
virtual ~AbstractGraphStore() = default;
22+
2123
virtual int load(const std::string &index_path_prefix) = 0;
2224
virtual int store(const std::string &index_path_prefix) = 0;
2325

0 commit comments

Comments
 (0)