- 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
@@ -554,6 +554,11 @@ done:
hdr = hdr->next;
}
+
+ /* trigger free of body */
+ if(brpl->body && brpl->body->free) {
+ brpl->body->free(&brpl->body);
+ }
sip_msg_free(brpl);