mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-10-27 14:41:28 +01:00
BUG/MINOR: ssl: leak in ssl-f-use
Fix the leak of the filename in the struct cfg_crt_node which is a temporary structure used for ssl-f-use initialization. Must be backported to 3.2.
This commit is contained in:
parent
cbe5221182
commit
d9365a88a5
@ -2405,6 +2405,7 @@ error:
|
||||
ha_free(&ckch_conf);
|
||||
ssl_sock_free_ssl_conf(ssl_conf);
|
||||
ha_free(&ssl_conf);
|
||||
ha_free(&cfg_crt_node->filename);
|
||||
ha_free(&cfg_crt_node);
|
||||
return -1;
|
||||
}
|
||||
@ -2460,6 +2461,7 @@ static int post_section_frontend_crt_init()
|
||||
LIST_DELETE(&n->list);
|
||||
/* n->ssl_conf is reused so we don't free them here */
|
||||
free(n->ckch_conf);
|
||||
free(n->filename);
|
||||
free(n);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user