Commit 462a3629 authored by Ole André Vadla Ravnås's avatar Ole André Vadla Ravnås Committed by Olivier Crête

component: Clear buffer pointers to avoid potential double free

In case close() is called more than once.
parent b590a412
......@@ -389,6 +389,8 @@ nice_component_close (NiceAgent *agent, NiceStream *stream, NiceComponent *cmp)
g_free (cmp->recv_buffer);
g_free (cmp->rfc4571_buffer);
cmp->recv_buffer = NULL;
cmp->rfc4571_buffer = NULL;
}
/*
......
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