From 177e7648c4b6f227da4e205caa84202799d72bfd Mon Sep 17 00:00:00 2001 From: Ruthenic Date: Wed, 26 Jan 2022 21:18:33 -0500 Subject: [PATCH] `ls`: fix memory leak. --- src/ls.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ls.c b/src/ls.c index 93f31c6..e7b633e 100644 --- a/src/ls.c +++ b/src/ls.c @@ -137,6 +137,7 @@ static int listDirs(char *thatpath, bool specpath, bool colour, bool showdot, printf("%s ", words[i]); } } + free(words[i]); } printf("\n"); return 0;