[asterisk-dev] possible memory leak in chan_sip.c ?
Luigi Rizzo
rizzo at icir.org
Thu Nov 9 13:50:06 MST 2006
On Thu, Nov 09, 2006 at 01:48:45PM -0600, Kevin P. Fleming wrote:
> Luigi Rizzo wrote:
> > any ideas on the second part, __sip_ack() leaking memory ?
>
> Does running with MALLOC_DEBUG actually show memory being leaked? It
> would be useful to know if there is an actual problem, as opposed to a
> hypothetical problem that could take a long time to disprove.
have not tried. i don't even know how to excercise that part of the code.
But purely by code inspection, i am pretty sure that there is a
leak - the packet matching the ack is extracted from the list and
nobody references it.
the question was aimed to know if whoever wrote/is familiar
with that part of the code knows why - whether this is a residue
of some old code (likely), or there is something that got
deleted elsewhere in the code justifying the deletion.
cheers
luigi
More information about the asterisk-dev
mailing list