]> 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)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 9 Dec 2025 19:39:16 +0000 (19:39 +0000)
commitbf0ce4577ccda30d07925bb87c8c51b0575e83ea
tree7e9f4455089a939e42b402ae589fb1dcd17b60b5
parent3e84ffaaa17dfa9c41de652433bb78a0dd8503d8
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