aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-13 01:48:36 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-13 01:48:36 -0800
commit45d7aff47545f52136487fbb5b06cdcf716cbe9f (patch)
tree38140eaa9d47cea8276e06cec93f0cb2988eae8d /bp.c
parent7e4b287d9bd904aaf9cc2bf77cdd456194130e99 (diff)
Major overhaul of some of the memory tracking code, as well as some
cleanup of the compilation code.
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c3
1 files changed, 3 insertions, 0 deletions
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;
}