eliminate small leak

This commit is contained in:
Nikos Mavrogiannopoulos
2014-02-15 09:57:52 +01:00
parent 828814862b
commit 8ffca1fcd9
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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);