daemon.c: fixed heap manipulations with mutex held

This commit is contained in:
Evgeny Grin (Karlson2k)
2023-03-02 21:16:02 +03:00
parent 12f637aaf0
commit 2124a70e54
+3 -2
View File
@@ -483,10 +483,11 @@ MHD_ip_limit_del (struct MHD_Daemon *daemon,
tdelete (found_key,
&daemon->per_ip_connection_count,
&MHD_ip_addr_compare);
MHD_ip_count_unlock (daemon);
free (found_key);
}
MHD_ip_count_unlock (daemon);
else
MHD_ip_count_unlock (daemon);
}