diff options
Diffstat (limited to 'libbb/xfuncs_printf.c')
-rw-r--r-- | libbb/xfuncs_printf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libbb/xfuncs_printf.c b/libbb/xfuncs_printf.c index 03aeaaa38..f021493b1 100644 --- a/libbb/xfuncs_printf.c +++ b/libbb/xfuncs_printf.c | |||
@@ -323,6 +323,11 @@ void FAST_FUNC bb_unsetenv(const char *var) | |||
323 | free(tp); | 323 | free(tp); |
324 | } | 324 | } |
325 | 325 | ||
326 | void FAST_FUNC bb_unsetenv_and_free(char *var) | ||
327 | { | ||
328 | bb_unsetenv(var); | ||
329 | free(var); | ||
330 | } | ||
326 | 331 | ||
327 | // Die with an error message if we can't set gid. (Because resource limits may | 332 | // Die with an error message if we can't set gid. (Because resource limits may |
328 | // limit this user to a given number of processes, and if that fills up the | 333 | // limit this user to a given number of processes, and if that fills up the |