diff options
author | Jenkins2 <jenkins2@gerrit.asterisk.org> | 2017-10-06 14:16:56 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2017-10-06 14:16:56 -0500 |
commit | d4be387d41d1c423e4135d1235c49a0e4c572f5a (patch) | |
tree | dde35450b1b8464369553ac8e55c3784748549ab | |
parent | 59b6e8467a399b5654e640455c0f5683ce029cd6 (diff) | |
parent | b35ac9e566666fb5f8d98db522ec56353f915a77 (diff) |
Merge "res_pjsip: Fix leak of fake_auth references."
-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); |