diff --git a/main.c b/main.c index 5ab7efa..bde737d 100644 --- a/main.c +++ b/main.c @@ -444,6 +444,8 @@ void read_dir_rec(const char *dirname) { else first = 0; } + + free(dirnames); } void* s_malloc(size_t size) {