]> git.ipfire.org Git - thirdparty/asterisk.git/commit
rtp_engine and stun: call ast_register_atexit instead of ast_register_cleanup
authorGeorge Joseph <gjoseph@sangoma.com>
Tue, 2 Apr 2024 20:28:35 +0000 (14:28 -0600)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 9 Apr 2024 20:12:38 +0000 (20:12 +0000)
commit70fd8f1c9302f4e29280e505d00133b99a07839d
tree91c99a50cdcd7599eee221ee7f12b9268552b8f7
parent52881ef6e513e099d7a1b0259551765ac075f90a
rtp_engine and stun: call ast_register_atexit instead of ast_register_cleanup

rtp_engine.c and stun.c were calling ast_register_cleanup which
is skipped if any loadable module can't be cleanly unloaded
when asterisk shuts down.  Since this will always be the case,
their cleanup functions never get run.  In a practical sense
this makes no difference since asterisk is shutting down but if
you're in development mode and trying to use the leak sanitizer,
the leaks from both of those modules clutter up the output.
main/rtp_engine.c
main/stun.c