diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-06 13:56:02 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-06 13:56:02 -0500 |
commit | b4ed8c4e4f9b467e88213954e86eb6eeecbca132 (patch) | |
tree | 75ce1d980233cd02a4768653d005761e9d8530f4 | |
parent | acb53a229516c61b7beb2603cd31b3e424640dbe (diff) | |
parent | 3e2cb5a9e9a0262ed23b934407ff829890e6553a (diff) |
Merge "res_pjsip: Fix leak of fake_auth references." into 14
-rw-r--r-- | res/res_pjsip/pjsip_distributor.c | 2 |
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); |