diff --git a/src/filter-test.c b/src/filter-test.c index cfbd2ea..c869702 100644 --- a/src/filter-test.c +++ b/src/filter-test.c @@ -56,6 +56,7 @@ int main(int argc, char *argv[]) { } } fprintf(stderr, "%% lines read: %zu, matched: %zu\n", read, matched); + fclose(file); return EXIT_SUCCESS; } diff --git a/src/filter.c b/src/filter.c index b096a00..91efa43 100644 --- a/src/filter.c +++ b/src/filter.c @@ -60,6 +60,7 @@ f2b_filter_load_file(f2b_filter_t *filter, const char *path) { break; } } + fclose(f); return true; }