aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-26 13:12:02 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-26 13:12:02 -0700
commit77d9007a88a18e0dee08aa9ba93e3aec86375572 (patch)
tree5dddf51ce1dfba7fe5272fc024bb839868a789ab /bp.c
parentee0174001b385944c6a2b3b1fb6ba861613cb4f7 (diff)
Refactor of pat_t memory management to use doubly linked lists, and
moving the recursive freeing code from Lua/lbp.c into pattern.c
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bp.c b/bp.c
index f9d1512..73b0469 100644
--- a/bp.c
+++ b/bp.c
@@ -682,7 +682,7 @@ int main(int argc, char *argv[])
// tracking down memory leaks.
free_all_matches();
defs = free_defs(defs, NULL);
- free_pat(NULL);
+ free_all_pats();
while (loaded_files) {
file_t *next = loaded_files->next;
destroy_file(&loaded_files);