Browse code

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 authored on 17/01/2004 21:18:04
Showing 1 changed files
... ...
@@ -504,6 +504,7 @@ static inline int print_uris(FILE* out, struct sip_msg* reply)
504 504
 	memset(dlg, 0, sizeof(dlg_t));
505 505
 	if (dlg_response_uac(dlg, reply) < 0) {
506 506
 		LOG(L_ERR, "print_routes(): Error while creating dialog structure\n");
507
+		free_dlg(dlg);
507 508
 		return -2;
508 509
 	}
509 510