]> 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 Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:48:09 +0000 (13:48 +0000)
commitd5985bde6f24f218dbff4ab83fe266f9bff6be09
tree29b069cf67e4d110a9a0204ac4d801fe62c0e03f
parentd0c4c7685360a7bf452e6be9114f36243b84df6b
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.

(cherry picked from commit 1eec3b6d18f41334e263a9f69125ae08f5a445f9)
main/rtp_engine.c
main/stun.c