Преглед на файлове

- 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();