Skip to content

Commit

Permalink
Fix memory leak (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanhaoji2 authored Nov 30, 2023
1 parent 337d0d5 commit 9bb0cf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/abstract_data_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ template <typename data_t> class AbstractDataStore
public:
AbstractDataStore(const location_t capacity, const size_t dim);

// virtual ~AbstractDataStore() = default;
virtual ~AbstractDataStore() = default;

// Return number of points returned
virtual location_t load(const std::string &filename) = 0;
Expand Down
2 changes: 2 additions & 0 deletions include/abstract_graph_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class AbstractGraphStore
{
}

virtual ~AbstractGraphStore() = default;

virtual int load(const std::string &index_path_prefix) = 0;
virtual int store(const std::string &index_path_prefix) = 0;

Expand Down

0 comments on commit 9bb0cf0

Please sign in to comment.