浏览代码

- free AVP list to avoid memory leaks when tm runs out of memory while
creating a new cell (fixed by Michal Matyska)

Jan Janak 20 年之前
父节点
当前提交
a4c2553b80
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      modules/tm/h_table.c

+ 1 - 0
modules/tm/h_table.c

@@ -280,6 +280,7 @@ struct cell*  build_cell( struct sip_msg* p_msg )
 	return new_cell;
 	return new_cell;
 
 
 error:
 error:
+	destroy_avp_list(&new_cell->user_avps);
 	shm_free(new_cell);
 	shm_free(new_cell);
 	/* unlink transaction AVP list and link back the global AVP list (bogdan)*/
 	/* unlink transaction AVP list and link back the global AVP list (bogdan)*/
 	reset_avps();
 	reset_avps();