aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
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;
}