mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-11 04:18:21 +00:00
Merge "res_pjsip: Fix leak of fake_auth references." into 15
This commit is contained in:
@@ -1142,9 +1142,9 @@ static void global_loaded(const char *object_type)
|
|||||||
fake_auth = alloc_artificial_auth(default_realm);
|
fake_auth = alloc_artificial_auth(default_realm);
|
||||||
if (fake_auth) {
|
if (fake_auth) {
|
||||||
ao2_global_obj_replace_unref(artificial_auth, 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);
|
ast_sip_get_unidentified_request_thresholds(&unidentified_count, &unidentified_period, &unidentified_prune_interval);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user