summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-10-06 14:12:27 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-10-06 14:12:27 -0500
commit6e14b6dc3aa662bb6beba571d9a2f5b51f0f4f50 (patch)
tree22b7c39491b993d0f144da88906a6fb2e4ed4b91
parentba37dd65d3784196279c3dfe6ed22ed41fa85342 (diff)
parent4ad9ddfc75defb36e9a405295d57a8e0a05e0d6f (diff)
Merge "res_pjsip: Fix leak of fake_auth references." into 15
-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);