*: introduce and use bb_unsetenv_and_free
function old new delta bb_unsetenv_and_free - 17 +17 tcpudpsvd_main 1819 1810 -9 safe_setenv 58 47 -11 udhcp_run_script 630 616 -14 make_device 1683 1663 -20 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
da75f44844
commit
dd8adde386
6 changed files with 11 additions and 10 deletions
|
@ -323,6 +323,11 @@ void FAST_FUNC bb_unsetenv(const char *var)
|
|||
free(tp);
|
||||
}
|
||||
|
||||
void FAST_FUNC bb_unsetenv_and_free(char *var)
|
||||
{
|
||||
bb_unsetenv(var);
|
||||
free(var);
|
||||
}
|
||||
|
||||
// Die with an error message if we can't set gid. (Because resource limits may
|
||||
// limit this user to a given number of processes, and if that fills up the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue