summaryrefslogtreecommitdiff
path: root/res/res_pjsip
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-10-05 16:54:12 -0400
committerCorey Farrell <git@cfware.com>2017-10-06 10:23:38 -0400
commitb35ac9e566666fb5f8d98db522ec56353f915a77 (patch)
treec23f858ac85634526aeae353e80afbfb1a0b4f51 /res/res_pjsip
parent3ef6834c3b6fb9cb73164dcc56a10820026a63c5 (diff)
res_pjsip: Fix leak of fake_auth references.
pjsip_distributor leaks references to fake_auth when the default realm has not changed. ASTERISK-27306 Change-Id: I3fcf103b3680ad2d1d4610dcd6738eeaebf4d202
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 cf1b04a8b..b4828d89f 100644
--- a/res/res_pjsip/pjsip_distributor.c
+++ b/res/res_pjsip/pjsip_distributor.c
@@ -1142,9 +1142,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);