diff options
Diffstat (limited to 'networking/ifplugd.c')
-rw-r--r-- | networking/ifplugd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/networking/ifplugd.c b/networking/ifplugd.c index 4f8a274b0..9bc1a075f 100644 --- a/networking/ifplugd.c +++ b/networking/ifplugd.c | |||
@@ -7,11 +7,11 @@ | |||
7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. | 7 | * Licensed under GPLv2 or later, see file LICENSE in this source tree. |
8 | */ | 8 | */ |
9 | //config:config IFPLUGD | 9 | //config:config IFPLUGD |
10 | //config: bool "ifplugd" | 10 | //config: bool "ifplugd (9.9 kb)" |
11 | //config: default y | 11 | //config: default y |
12 | //config: select PLATFORM_LINUX | 12 | //config: select PLATFORM_LINUX |
13 | //config: help | 13 | //config: help |
14 | //config: Network interface plug detection daemon. | 14 | //config: Network interface plug detection daemon. |
15 | 15 | ||
16 | //applet:IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 16 | //applet:IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
17 | 17 | ||
@@ -342,10 +342,8 @@ static int run_script(const char *action) | |||
342 | /* r < 0 - can't exec, 0 <= r < 0x180 - exited, >=0x180 - killed by sig (r-0x180) */ | 342 | /* r < 0 - can't exec, 0 <= r < 0x180 - exited, >=0x180 - killed by sig (r-0x180) */ |
343 | r = spawn_and_wait(argv); | 343 | r = spawn_and_wait(argv); |
344 | 344 | ||
345 | unsetenv(IFPLUGD_ENV_PREVIOUS); | 345 | bb_unsetenv_and_free(env_PREVIOUS); |
346 | unsetenv(IFPLUGD_ENV_CURRENT); | 346 | bb_unsetenv_and_free(env_CURRENT); |
347 | free(env_PREVIOUS); | ||
348 | free(env_CURRENT); | ||
349 | 347 | ||
350 | bb_error_msg("exit code: %d", r & 0xff); | 348 | bb_error_msg("exit code: %d", r & 0xff); |
351 | return (option_mask32 & FLAG_IGNORE_RETVAL) ? 0 : r; | 349 | return (option_mask32 & FLAG_IGNORE_RETVAL) ? 0 : r; |