From f5c125b3ee7ac6d718cf23ef3c7aaba90ce89ff8 Mon Sep 17 00:00:00 2001 From: Bert Date: Wed, 2 Feb 2011 20:46:56 +0100 Subject: [PATCH] Fixed stupid memory leak in read_dir_rec --- main.c | 2 ++ 1 file changed, 2 insertions(+) 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) {