diff --git a/res/res_pjsip_exten_state.c b/res/res_pjsip_exten_state.c index c921d4437fb73cbd847faef5dee6af2b5e03e274..483d78b4b5fb06678939446bdcc94cf0534f390d 100644 --- a/res/res_pjsip_exten_state.c +++ b/res/res_pjsip_exten_state.c @@ -250,7 +250,6 @@ static void create_send_notify(struct exten_state_subscription *exten_state_sub, if (ast_sip_subscription_send_request(exten_state_sub->sip_sub, tdata) != PJ_SUCCESS) { ast_log(LOG_WARNING, "Unable to send NOTIFY request\n"); - pjsip_tx_data_dec_ref(tdata); } } diff --git a/res/res_pjsip_messaging.c b/res/res_pjsip_messaging.c index 8f5151292ed44fe99c69b5fa423c1cab9430eee2..a3972ce67edc6b44e92a8ccabc0f7baab179cfe4 100644 --- a/res/res_pjsip_messaging.c +++ b/res/res_pjsip_messaging.c @@ -484,7 +484,6 @@ static int msg_send(void *data) update_from(tdata, mdata->from); vars_to_headers(mdata->msg, tdata); if (ast_sip_send_request(tdata, NULL, endpoint)) { - pjsip_tx_data_dec_ref(tdata); ast_log(LOG_ERROR, "SIP MESSAGE - Could not send request\n"); return -1; } diff --git a/res/res_pjsip_notify.c b/res/res_pjsip_notify.c index 2f0cfd31afaacddb9baf017aa6bc5bffb91adf06..c90a91b15dcdb2b598c5a4f934d5d09e8f20fcfb 100644 --- a/res/res_pjsip_notify.c +++ b/res/res_pjsip_notify.c @@ -440,7 +440,6 @@ static int notify_contact(void *obj, void *arg, int flags) data->build_notify(tdata, data->info); if (ast_sip_send_request(tdata, NULL, data->endpoint)) { - pjsip_tx_data_dec_ref(tdata); ast_log(LOG_ERROR, "SIP NOTIFY - Unable to send request for " "contact %s\n", contact->uri); return -1; diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c index d9c4f2bb5e2a1d36426d0c2f6a1fde90a4561687..67e0ead3370cf0f098d1d1bcba3871200ca6c6d5 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -221,7 +221,6 @@ static int handle_client_registration(void *data) ao2_ref(client_state, +1); if (pjsip_regc_send(client_state->client, tdata) != PJ_SUCCESS) { ao2_ref(client_state, -1); - pjsip_tx_data_dec_ref(tdata); } return 0;