Skip to content

Commit

Permalink
Merge pull request #26 from lxylxy123456/dynamic_table
Browse files Browse the repository at this point in the history
Fix memory leak in DynamicTable
  • Loading branch information
lxylxy123456 committed Dec 17, 2020
2 parents effa536 + 2dadc60 commit 3af51bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ VALGRIND := $(filter-out valgrind/RaceExampleTest,$(VALGRIND))

# VALGRIND_ALL has currently unavailable tests filtered out
VALGRIND_ALL := $(VALGRIND)
VALGRIND_ALL := $(filter-out valgrind/DynamicTableTest,$(VALGRIND_ALL))
VALGRIND_ALL := $(filter-out valgrind/FibTest,$(VALGRIND_ALL))
VALGRIND_ALL := $(filter-out valgrind/HireAssistantTest,$(VALGRIND_ALL))
VALGRIND_ALL := $(filter-out valgrind/HuffmanTest,$(VALGRIND_ALL))
Expand Down
1 change: 1 addition & 0 deletions include/DynamicTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class DynamicTable {
}
return ans;
}
~DynamicTable() { delete table; }
size_t size, num;
std::vector<T>* table;
};
Expand Down

0 comments on commit 3af51bb

Please sign in to comment.