diff options
Diffstat (limited to 'coreutils/ls.c')
-rw-r--r-- | coreutils/ls.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coreutils/ls.c b/coreutils/ls.c index d2a935d82..853a18059 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -360,8 +360,7 @@ static void dfree(struct dnode **dnp) cur = dnp[0]; while (cur != NULL) { - if (cur->fullname != NULL) - free(cur->fullname); /* free the filename */ + free(cur->fullname); /* free the filename */ next = cur->next; free(cur); /* free the dnode */ cur = next; |