]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 9 Apr 2024 20:12:35 +0000 (20:12 +0000)
commit3767e14d1501c09b97031f15e81216149f651d02
treeed337eb0f71d4495fe438aba3652d0ed24bb7e5c
parentd47641cbcf9ef38c5164dcdc17ade8f5a595c965
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