浏览代码

tm: cleanup parsed body at the end t_continue_helper

- 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
Rick Barenthin 2 年之前
父节点
当前提交
f409a8c9f6
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/modules/tm/t_suspend.c

+ 5 - 0
src/modules/tm/t_suspend.c

@@ -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);
 		}
 	}