From 68dc4ef8682c1ed390659470fa856002d40a5fd7 Mon Sep 17 00:00:00 2001 From: "Adam Roach [:abr]" Date: Wed, 2 Jan 2013 15:06:12 -0600 Subject: [PATCH] Bug 825086: Removing errant free of body parts when encoding fails r=ekr --- media/webrtc/signaling/src/sipcc/core/gsm/fsmdef.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/media/webrtc/signaling/src/sipcc/core/gsm/fsmdef.c b/media/webrtc/signaling/src/sipcc/core/gsm/fsmdef.c index 67c94215d30..167bb727ea3 100755 --- a/media/webrtc/signaling/src/sipcc/core/gsm/fsmdef.c +++ b/media/webrtc/signaling/src/sipcc/core/gsm/fsmdef.c @@ -2961,7 +2961,6 @@ fsmdef_ev_createoffer (sm_event_t *event) { cause = gsmsdp_encode_sdp_and_update_version(dcb, &msg_body); if (cause != CC_CAUSE_OK) { - cc_free_msg_body_parts(&msg_body); ui_create_offer(evCreateOfferError, line, call_id, dcb->caller_id.call_instance_id, strlib_empty()); FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR)); @@ -3096,7 +3095,6 @@ fsmdef_ev_createanswer (sm_event_t *event) { cause = gsmsdp_encode_sdp_and_update_version(dcb, &msg_body); if (cause != CC_CAUSE_OK) { - cc_free_msg_body_parts(&msg_body); ui_create_answer(evCreateAnswerError, line, call_id, dcb->caller_id.call_instance_id, strlib_empty()); FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR)); @@ -3151,7 +3149,6 @@ fsmdef_ev_setlocaldesc(sm_event_t *event) { if (JSEP_OFFER == action) { cause = gsmsdp_encode_sdp(dcb->sdp, &msg_body); if (cause != CC_CAUSE_OK) { - cc_free_msg_body_parts(&msg_body); FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR)); ui_set_local_description(evSetLocalDescError, line, call_id, dcb->caller_id.call_instance_id, strlib_empty(), @@ -3176,7 +3173,6 @@ fsmdef_ev_setlocaldesc(sm_event_t *event) { /* compare SDP generated from CreateAnswer */ cause = gsmsdp_encode_sdp(dcb->sdp, &msg_body); if (cause != CC_CAUSE_OK) { - cc_free_msg_body_parts(&msg_body); FSM_DEBUG_SM(get_debug_string(FSM_DBG_SDP_BUILD_ERR)); ui_set_local_description(evSetLocalDescError, line, call_id, dcb->caller_id.call_instance_id, strlib_empty(),