]> 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:33 +0000 (20:12 +0000)
commit00940e2abd3dfe2bb436c4330ebaba427b5a36a2
tree71fdf3c9181db45c025cd3054f13245b8f92f0cc
parentd214c72c2a7101a76766af66c7588f97ae139c90
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