diff options
Diffstat (limited to 'fsck_minix.c')
-rw-r--r-- | fsck_minix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fsck_minix.c b/fsck_minix.c index 47e81ce42..aa0a82432 100644 --- a/fsck_minix.c +++ b/fsck_minix.c | |||
@@ -1242,6 +1242,7 @@ static void alloc_name_list(void) | |||
1242 | name_list[i] = xmalloc(sizeof(char) * PATH_MAX + 1); | 1242 | name_list[i] = xmalloc(sizeof(char) * PATH_MAX + 1); |
1243 | } | 1243 | } |
1244 | 1244 | ||
1245 | #if 0 | ||
1245 | /* execute this atexit() to deallocate name_list[] */ | 1246 | /* execute this atexit() to deallocate name_list[] */ |
1246 | /* piptigger was here */ | 1247 | /* piptigger was here */ |
1247 | static void free_name_list(void) | 1248 | static void free_name_list(void) |
@@ -1257,6 +1258,7 @@ static void free_name_list(void) | |||
1257 | free(name_list); | 1258 | free(name_list); |
1258 | } | 1259 | } |
1259 | } | 1260 | } |
1261 | #endif | ||
1260 | 1262 | ||
1261 | extern int fsck_minix_main(int argc, char **argv) | 1263 | extern int fsck_minix_main(int argc, char **argv) |
1262 | { | 1264 | { |
@@ -1265,7 +1267,9 @@ extern int fsck_minix_main(int argc, char **argv) | |||
1265 | int retcode = 0; | 1267 | int retcode = 0; |
1266 | 1268 | ||
1267 | alloc_name_list(); | 1269 | alloc_name_list(); |
1268 | atexit(free_name_list); | 1270 | /* Don't bother to free memory. Exit does |
1271 | * that automagically, so we can save a few bytes */ | ||
1272 | //atexit(free_name_list); | ||
1269 | 1273 | ||
1270 | if (argc && *argv) | 1274 | if (argc && *argv) |
1271 | program_name = *argv; | 1275 | program_name = *argv; |