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;