]> jfr.im git - solanum.git/commit
timeout_dead_authd_clients(): fix memory leak and order of operations (#385)
authorAaron Jones <redacted>
Sun, 6 Nov 2022 08:14:15 +0000 (08:14 +0000)
committerGitHub <redacted>
Sun, 6 Nov 2022 08:14:15 +0000 (08:14 +0000)
commit63ee10379c32702e135e7f3e67b412672252dcd9
tree945301cd373dc2f2bfdaf79246824ff41498a19a
parented775e9bb45171353f68e30513986659eb483679
timeout_dead_authd_clients(): fix memory leak and order of operations (#385)

Ensure we deallocate the nodes created by the first loop, and zero out
the authd data after removing them from the authd clients dict.

The authd_abort_client() function already does the latter, so just call
that instead of authd_free_client().
ircd/authproc.c