[BusyBox] Busybox[PATCH] more space saving in strings.c

Tito farmatito at tiscali.it
Tue Sep 2 21:25:54 UTC 2003


Hi to all,
as I discovered just today in the libc info pages:

" There is no point in freeing blocks at the end of a program, because
all of the program's space is given back to the system when the process
terminates."

so if this is true ( I believed memory should always be freed)
we can save more space in  miscutils/strings.c. 

--- miscutils/strings_old.c     2003-09-02 22:17:56.000000000 +0100
+++ miscutils/strings.c 2003-09-02 22:19:31.000000000 +0100
@@ -119,7 +119,6 @@
                        status=EXIT_FAILURE;
                }
        }
-       free(string);
        exit(status);
 }

Please apply, if the linux gurus agree with that.

Ciao,
TITO  



More information about the busybox mailing list