]> git.ipfire.org Git - thirdparty/asterisk.git/commit
endpoint.c: Plug a memory leak in ast_endpoint_shutdown().
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 8 Dec 2025 20:40:00 +0000 (13:40 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 9 Dec 2025 19:39:09 +0000 (19:39 +0000)
commit8f90b2fd38f26e6e3405f97a5568dcffd1a2fabb
treea426dea80de4fc60fa5821de1afbc7fcc0710359
parent0a83b87b4cb5df7f434c3e7f9be7be98857953dc
endpoint.c: Plug a memory leak in ast_endpoint_shutdown().

Commit 26795be introduced a memory leak of ast_endpoint when
ast_endpoint_shutdown() was called. The leak occurs only if a configuration
change removes an endpoint and isn't related to call volume or the length of
time asterisk has been running.  An ao2_ref(-1) has been added to
ast_endpoint_shutdown() to plug the leak.

Resolves: #1635
main/endpoints.c