Просмотр исходного кода

memory leak fixed (see the error stack for when it occured: dialog
fragment was allocated, contact processing failed, the dialog fragment
stayed)
Jan 15 16:41:07 fox /home/srouter/bin/sr[8864]: contact_parser(): Empty body
Jan 15 16:41:07 fox /home/srouter/bin/sr[8864]: parse_contact(): Error while parsing
Jan 15 16:41:07 fox /home/srouter/bin/sr[8864]: get_contact_uri(): Error while parsing Contact body
Jan 15 16:41:07 fox /home/srouter/bin/sr[8864]: print_routes(): Error while creating dialog structure

Jiri Kuthan 21 лет назад
Родитель
Сommit
3e8d2bae64
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      modules/tm/uac_fifo.c

+ 1 - 0
modules/tm/uac_fifo.c

@@ -504,6 +504,7 @@ static inline int print_uris(FILE* out, struct sip_msg* reply)
 	memset(dlg, 0, sizeof(dlg_t));
 	if (dlg_response_uac(dlg, reply) < 0) {
 		LOG(L_ERR, "print_routes(): Error while creating dialog structure\n");
+		free_dlg(dlg);
 		return -2;
 	}