From c7ceb08b31fdb3f6560d02fff6b6ee71602c19ec Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 2 Aug 2019 13:43:36 +0200 Subject: [PATCH] tm: removed unused error label in prepare_new_uac() --- src/modules/tm/t_fwd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/modules/tm/t_fwd.c b/src/modules/tm/t_fwd.c index ad1ec2dc153..af6a40de1e3 100644 --- a/src/modules/tm/t_fwd.c +++ b/src/modules/tm/t_fwd.c @@ -199,14 +199,14 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req, i_req->add_rm = dup_lump_list(i_req->add_rm); if (unlikely(i_req->add_rm==0)){ ret=E_OUT_OF_MEM; - goto error06; + goto error05; } } if (unlikely(i_req->body_lumps)){ i_req->body_lumps = dup_lump_list(i_req->body_lumps); if (unlikely(i_req->body_lumps==0)){ ret=E_OUT_OF_MEM; - goto error05; + goto error04; } } /* backup uri & path: we need to change them so that build_req...() @@ -595,13 +595,12 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req, * routing sections, Via, and Content-Length headers created in * build_req_buf_from_sip_req(). */ -error04: free_duped_lump_list(i_req->body_lumps); -error05: +error04: free_duped_lump_list(i_req->add_rm); -error06: +error05: /* Restore the lists from backups. */ i_req->add_rm = add_rm_backup; i_req->body_lumps = body_lumps_backup;