add: free_dlg(dlg);
context: static inline int print_uris(FILE* out, struct sip_msg* reply){	dlg_t* dlg;		dlg = (dlg_t*)shm_malloc(sizeof(dlg_t));	if (!dlg) {		LOG(L_ERR, "print_routes(): No memory left\n");		return -1;	}	memset(dlg, 0, sizeof(dlg_t));	if (dlg_response_uac(dlg, reply) < 0) {		LOG(L_ERR, "print_routes(): Error while creating dialog structure\n");		return -2;	}	if (dlg->state != DLG_CONFIRMED) {		fprintf(out, ".\n.\n.\n");		free_dlg(dlg);		return 0;	}	if (dlg->hooks.request_uri->s) {			fprintf(out, "%.*s\n", dlg->hooks.request_uri->len, dlg->hooks.request_uri->s);	} else {		fprintf(out, ".\n");	}	if (dlg->hooks.next_hop->s) {		fprintf(out, "%.*s\n", dlg->hooks.next_hop->len, dlg->hooks.next_hop->s);	} else {		fprintf(out, ".\n");	}	print_routes(out, dlg);	free_dlg(dlg);	return 0;}