From 45d7aff47545f52136487fbb5b06cdcf716cbe9f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 13 Jan 2021 01:48:36 -0800 Subject: Major overhaul of some of the memory tracking code, as well as some cleanup of the compilation code. --- bp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bp.c') diff --git a/bp.c b/bp.c index 1db9bf4..309e187 100644 --- a/bp.c +++ b/bp.c @@ -120,6 +120,7 @@ static int process_file(def_t *defs, const char *filename, vm_op_t *pattern, uns if (m != NULL) destroy_match(&m); + destroy_file(&f); return success; @@ -286,6 +287,8 @@ int main(int argc, char *argv[]) } if (flags & BP_JSON) printf("]\n"); + free_defs(&defs, NULL); + return (found > 0) ? 0 : 1; } -- cgit v1.2.3