Browse Source

- 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 years ago
parent
commit
a4c2553b80
1 changed files with 1 additions and 0 deletions
  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();