Skip to content

Commit

Permalink
tm: cleanup parsed body at the end t_continue_helper
Browse files Browse the repository at this point in the history
- if t_suspend and t_continue are used for replies
  and in the called route in t_continue the body of
  the sip message is parsed the pkg memory of the
  parsed body is leaked
  • Loading branch information
Rick Barenthin authored and miconda committed Dec 7, 2022
1 parent 7f9547a commit f409a8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/modules/tm/t_suspend.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,11 @@ static int t_continue_helper(unsigned int hash_index, unsigned int label,
hdr = hdr->next;
}
}

/* trigger free of body */
if(brpl->body && brpl->body->free) {
brpl->body->free(&brpl->body);
}
sip_msg_free(brpl);
}
}
Expand Down

0 comments on commit f409a8c

Please sign in to comment.