mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 05:36:56 +00:00
MINOR: ssl: free bind_conf_node in crtlist_free()
Free the list of bind_conf using a crt-list in crtlist_free()
This commit is contained in:
parent
7df5c2dc3c
commit
6a3168ae84
@ -148,10 +148,18 @@ struct crtlist_entry *crtlist_entry_new()
|
||||
void crtlist_free(struct crtlist *crtlist)
|
||||
{
|
||||
struct crtlist_entry *entry, *s_entry;
|
||||
struct bind_conf_list *bind_conf_node;
|
||||
|
||||
if (crtlist == NULL)
|
||||
return;
|
||||
|
||||
bind_conf_node = crtlist->bind_conf;
|
||||
while (bind_conf_node) {
|
||||
struct bind_conf_list *next = bind_conf_node->next;
|
||||
free(bind_conf_node);
|
||||
bind_conf_node = next;
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(entry, s_entry, &crtlist->ord_entries, by_crtlist) {
|
||||
crtlist_entry_free(entry);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user