]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix leak of persistent endpoint references.
authorCorey Farrell <git@cfware.com>
Thu, 5 Oct 2017 21:26:14 +0000 (17:26 -0400)
committerCorey Farrell <git@cfware.com>
Fri, 6 Oct 2017 20:54:11 +0000 (15:54 -0500)
commitf1163c0f6ffadd6a5ad6510b415949e967862c19
tree9c6d5020438172f1e374548966c3438944e1b836
parentd2a39f896d16c76b2aedbf5c0020c7847c7a5fb1
res_pjsip: Fix leak of persistent endpoint references.

Do not manually call sip_endpoint_apply_handler from load_all_endpoints.
This is not necessary and causes memory leaks.

Additionally reinitialize persistent->aors when we reuse a persistent
object with a new endpoint.

ASTERISK-27306

Change-Id: I59bbfc8da8a14d5f4af8c5bb1e71f8592ae823eb
res/res_pjsip/pjsip_configuration.c