소스 검색

- 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;
 
 error:
+	destroy_avp_list(&new_cell->user_avps);
 	shm_free(new_cell);
 	/* unlink transaction AVP list and link back the global AVP list (bogdan)*/
 	reset_avps();