mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
eliminate small leak
This commit is contained in:
@@ -556,6 +556,8 @@ void clear_lists(main_server_st *s)
|
||||
list_for_each_safe(&s->proc_list.head, ctmp, cpos, list) {
|
||||
if (ctmp->fd >= 0)
|
||||
close(ctmp->fd);
|
||||
if (proc->auth_ctx != NULL)
|
||||
proc_auth_deinit(s, proc);
|
||||
list_del(&ctmp->list);
|
||||
memset(ctmp, 0, sizeof(*ctmp));
|
||||
free(ctmp);
|
||||
|
||||
Reference in New Issue
Block a user