Commit f5200aa2 authored by Pekka Pessi's avatar Pekka Pessi

Fixed a memory leak when processing re-SUBSCRIBE in nea_server.c.

darcs-hash:20051125132352-65a35-92db8e4ed64cbaa4e48e75003c46f9aaeeff3f21.gz
parent ecb48b0f
......@@ -1404,7 +1404,6 @@ int nea_server_add(nea_server_t *nes,
if (s->s_local && s->s_leg) {
nta_leg_tag(s->s_leg, NULL);
irq =
return 0;
}
else {
......@@ -1831,7 +1830,8 @@ int nea_sub_process_subscribe(nea_sub_t *s,
s->s_subscribed = now;
s->s_expires = now + delta;
// s->s_accept = sip_accept_dup(home, accept);
s->s_id = sip_event_dup(home, sip->sip_event);
if (s->s_id == NULL)
s->s_id = sip_event_dup(home, sip->sip_event);
s->s_event = ev;
s->s_eventlist = supported_eventlist;
nea_sub_assign_view(s, evv);
......
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