summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-10-06 14:46:11 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-10-06 14:46:11 -0500
commit3844179335ce6e2921cb88b7b2ade1b72e0ec631 (patch)
tree5d18c0ea3909091611128d9ed7a67b538ad6703d /res/res_pjsip
parent7703ab04438b8c8ea15738621a7434b40c44d219 (diff)
parent5110600f1e5c8ce20acf57568731d81d54a39f5f (diff)
Merge "res_pjsip: Fix leak of fake_auth references." into 13
Diffstat (limited to 'res/res_pjsip')
-rw-r--r--res/res_pjsip/pjsip_distributor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c
index 3f245eea0..591d7fea7 100644
--- a/res/res_pjsip/pjsip_distributor.c
+++ b/res/res_pjsip/pjsip_distributor.c
@@ -1132,9 +1132,9 @@ static void global_loaded(const char *object_type)
fake_auth = alloc_artificial_auth(default_realm);
if (fake_auth) {
ao2_global_obj_replace_unref(artificial_auth, fake_auth);
- ao2_ref(fake_auth, -1);
}
}
+ ao2_cleanup(fake_auth);
ast_sip_get_unidentified_request_thresholds(&unidentified_count, &unidentified_period, &unidentified_prune_interval);