diff options
Diffstat (limited to 'networking/tcpudp.c')
-rw-r--r-- | networking/tcpudp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/networking/tcpudp.c b/networking/tcpudp.c index 42845df0e..53e622b56 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -85,8 +85,7 @@ static void undo_xsetenv(void) | |||
85 | char **pp = env_cur = &env_var[0]; | 85 | char **pp = env_cur = &env_var[0]; |
86 | while (*pp) { | 86 | while (*pp) { |
87 | char *var = *pp; | 87 | char *var = *pp; |
88 | bb_unsetenv(var); | 88 | bb_unsetenv_and_free(var); |
89 | free(var); | ||
90 | *pp++ = NULL; | 89 | *pp++ = NULL; |
91 | } | 90 | } |
92 | } | 91 | } |
@@ -502,10 +501,10 @@ int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) | |||
502 | #ifdef SSLSVD | 501 | #ifdef SSLSVD |
503 | strcpy(id, utoa(pid)); | 502 | strcpy(id, utoa(pid)); |
504 | ssl_io(0, argv); | 503 | ssl_io(0, argv); |
504 | bb_perror_msg_and_die("can't execute '%s'", argv[0]); | ||
505 | #else | 505 | #else |
506 | BB_EXECVP(argv[0], argv); | 506 | BB_EXECVP_or_die(argv); |
507 | #endif | 507 | #endif |
508 | bb_perror_msg_and_die("exec '%s'", argv[0]); | ||
509 | } | 508 | } |
510 | 509 | ||
511 | /* | 510 | /* |