diff options
author | Eric Andersen | 2000-07-25 18:01:20 +0000 |
---|---|---|
committer | Eric Andersen | 2000-07-25 18:01:20 +0000 |
commit | b040d4f3da1545225b9a58301deb29acee6aa7f3 (patch) | |
tree | f029b6d39fc4619a8369094efd4c558b10f3d927 /fsck_minix.c | |
parent | b9ea02c04b91773e6e5a116313b360f3499a2d4e (diff) | |
download | busybox-b040d4f3da1545225b9a58301deb29acee6aa7f3.zip busybox-b040d4f3da1545225b9a58301deb29acee6aa7f3.tar.gz |
Use BB_FEATURE_CLEAN_UP where appropriate
-Erik
Diffstat (limited to 'fsck_minix.c')
-rw-r--r-- | fsck_minix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fsck_minix.c b/fsck_minix.c index c3c493f..f980fe9 100644 --- a/fsck_minix.c +++ b/fsck_minix.c @@ -1319,7 +1319,7 @@ static void alloc_name_list(void) name_list[i] = xmalloc(sizeof(char) * BUFSIZ + 1); } -#if 0 +#ifdef BB_FEATURE_CLEAN_UP /* execute this atexit() to deallocate name_list[] */ /* piptigger was here */ static void free_name_list(void) @@ -1344,9 +1344,11 @@ extern int fsck_minix_main(int argc, char **argv) int retcode = 0; alloc_name_list(); +#ifdef BB_FEATURE_CLEAN_UP /* Don't bother to free memory. Exit does * that automagically, so we can save a few bytes */ - //atexit(free_name_list); + atexit(free_name_list); +#endif if (INODE_SIZE * MINIX_INODES_PER_BLOCK != BLOCK_SIZE) die("bad inode size"); |