`ls`: fix memory leak.

master
Drake 2 years ago
parent 182090801f
commit 177e7648c4

@ -137,6 +137,7 @@ static int listDirs(char *thatpath, bool specpath, bool colour, bool showdot,
printf("%s ", words[i]); printf("%s ", words[i]);
} }
} }
free(words[i]);
} }
printf("\n"); printf("\n");
return 0; return 0;

Loading…
Cancel
Save