]> 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:26 +0000 (20:12 +0000)
commitc31d3dfd188e725736e6d1b729f1df08b65a3c86
tree9c0ff7eed0be7ab475e5a83cd11afa3e45f43027
parent8b1502e4edab9a1df1bfddd905a4a6017fb0fed7
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