diff options
| author | Aaron Lehmann <aaronl@vitelius.com> | 2002-11-28 11:27:31 +0000 |
|---|---|---|
| committer | Aaron Lehmann <aaronl@vitelius.com> | 2002-11-28 11:27:31 +0000 |
| commit | a170e1c858d35c474ceb9fecb41b37d681424094 (patch) | |
| tree | cda2b13f10ca1ab0a3559d4b6ff663ed20d7106c /coreutils | |
| parent | 1652855fbc830f41c7ee56ece1a30b328c4fb395 (diff) | |
| download | busybox-w32-a170e1c858d35c474ceb9fecb41b37d681424094.tar.gz busybox-w32-a170e1c858d35c474ceb9fecb41b37d681424094.tar.bz2 busybox-w32-a170e1c858d35c474ceb9fecb41b37d681424094.zip | |
Change if(x)free(x); to free(x);
Diffstat (limited to 'coreutils')
| -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) | |||
| 360 | 360 | ||
| 361 | cur = dnp[0]; | 361 | cur = dnp[0]; |
| 362 | while (cur != NULL) { | 362 | while (cur != NULL) { |
| 363 | if (cur->fullname != NULL) | 363 | free(cur->fullname); /* free the filename */ |
| 364 | free(cur->fullname); /* free the filename */ | ||
| 365 | next = cur->next; | 364 | next = cur->next; |
| 366 | free(cur); /* free the dnode */ | 365 | free(cur); /* free the dnode */ |
| 367 | cur = next; | 366 | cur = next; |
