mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-14 06:49:17 +02:00
MINOR: fix a few memory usage errors
These are either use after free errors or small leaks where memory is not free'd after some error state is detected.
This commit is contained in:
committed by
Willy Tarreau
parent
e21f84903e
commit
07fcaaa4cd
@@ -1610,6 +1610,8 @@ int main(int argc, char **argv)
|
||||
exit(0); /* parent must leave */
|
||||
}
|
||||
|
||||
free(children);
|
||||
children = NULL;
|
||||
/* if we're NOT in QUIET mode, we should now close the 3 first FDs to ensure
|
||||
* that we can detach from the TTY. We MUST NOT do it in other cases since
|
||||
* it would have already be done, and 0-2 would have been affected to listening
|
||||
|
||||
Reference in New Issue
Block a user