Skip to content

Commit

Permalink
Fixed what was missed out in 6bc2a94
Browse files Browse the repository at this point in the history
refs #1537

(cherry picked from commit 3462e89)
  • Loading branch information
ar45 authored and bogdan-iancu committed Nov 22, 2018
1 parent b4f7ad3 commit 1d9e1f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/tm/t_reply.c
Expand Up @@ -673,13 +673,13 @@ static inline int do_dns_failover(struct cell *t)
if (t->uas.request==NULL) {
LM_ERR("cloning failed\n");
free_sip_msg(req);
pkg_free(req);
return -1;
}
t->uas.end_request = ((char*)t->uas.request) + sip_msg_len;
/* free the actual SIP message, keep the clone only */
free_sip_msg(req);
/* the sip_msg structure is static in buf_to_sip_msg,
so no need to free it */
pkg_free(req);
}
shmem_msg = t->uas.request;

Expand Down
2 changes: 1 addition & 1 deletion modules/tm/uac.c
Expand Up @@ -170,7 +170,7 @@ int t_uac(str* method, str* headers, str* body, dlg_t* dialog,
struct cell *new_cell;
struct cell *backup_cell;
struct retr_buf *request;
static struct sip_msg *req;
struct sip_msg *req;
struct usr_avp **backup;
char *buf, *buf1;
int buf_len, buf_len1;
Expand Down

0 comments on commit 1d9e1f3

Please sign in to comment.