aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-02 20:46:56 +0100
committerBert <ber.t@gmx.com>2011-02-02 20:46:56 +0100
commitf5c125b3ee7ac6d718cf23ef3c7aaba90ce89ff8 (patch)
tree978a7da2f7cf1b1c9cccb660d577dba56251e468
parenteb6680b9f1ef0c62eb3b3ba92e78548a98c42be9 (diff)
downloadnsxiv-f5c125b3ee7ac6d718cf23ef3c7aaba90ce89ff8.tar.zst
Fixed stupid memory leak in read_dir_rec
-rw-r--r--main.c2
1 files changed, 2 insertions, 0 deletions
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) {