mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 00:57:02 +02:00
CLEANUP: listeners: remove unreachable code in clone_listener()
Coverity reported in issue #1416 that label oom3 is not reachable in
function close_listener() added by commit 59a877dfd
("MINOR: listeners:
add clone_listener() to duplicate listeners at boot time"). The code
leading to it was removed during the development of the function, but
not the label itself.
This commit is contained in:
parent
7c4c830d04
commit
6d19f0d837
@ -704,8 +704,6 @@ struct listener *clone_listener(struct listener *src)
|
|||||||
global.maxsock++;
|
global.maxsock++;
|
||||||
return l;
|
return l;
|
||||||
|
|
||||||
oom3:
|
|
||||||
free(l->name);
|
|
||||||
oom2:
|
oom2:
|
||||||
free(l);
|
free(l);
|
||||||
oom1:
|
oom1:
|
||||||
|
Loading…
Reference in New Issue
Block a user