Commit ecfb0ab0 authored by Pekka Pessi's avatar Pekka Pessi

Fixed memory leaks in tport.c and nta.c.

darcs-hash:20051125132447-65a35-45b0ad1684149ae028f498692ffa501e8c202781.gz
parent f5200aa2
......@@ -534,6 +534,17 @@ void nta_agent_destroy(nta_agent_t *agent)
tport_destroy(agent->sa_tports), agent->sa_tports = NULL;
#if HAVE_SIGCOMP
if (agent->sa_compartment) {
sigcomp_compartment_unref(agent->sa_compartment);
agent->sa_compartment = NULL;
}
if (agent->sa_state_handler) {
sigcomp_state_handler_free(agent->sa_state_handler);
}
#endif
agent_kill_terminator(agent);
su_home_unref(agent->sa_home);
......
......@@ -3992,6 +3992,8 @@ tport_t *tport_tsend(tport_t *self,
cc = (struct sigcomp_compartment *)t->t_value;
}
ta_end(ta);
ai = msg_addrinfo(msg);
ai->ai_flags = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment