Browse Source

* fix resource leaks

master
Alex 'AdUser' Z 9 years ago
parent
commit
5b63c903cb
  1. 1
      src/filter-test.c
  2. 1
      src/filter.c

1
src/filter-test.c

@ -56,6 +56,7 @@ int main(int argc, char *argv[]) {
} }
} }
fprintf(stderr, "%% lines read: %zu, matched: %zu\n", read, matched); fprintf(stderr, "%% lines read: %zu, matched: %zu\n", read, matched);
fclose(file);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }

1
src/filter.c

@ -60,6 +60,7 @@ f2b_filter_load_file(f2b_filter_t *filter, const char *path) {
break; break;
} }
} }
fclose(f);
return true; return true;
} }

Loading…
Cancel
Save