Found Memory Leak in Squid at cbdata

From: atit_ldce <atit_ldce@dont-contact.us>
Date: Tue, 10 Jun 2003 10:25:41 +0530 (GMT+05:30)

Hello Squid Developers,
I found one memory leak at cbdata.c:109
label = xmalloc(strlen(name) + 20);

memory is allocated to char pointer label, then in memPoolCreate there is
pool->label = label (in MemPool.c)
but it is not cleared afterwards when MemPool is destroyed(in MemPool.c:memPoolDestroy()).

and enabling memory debug also shows memory leak at cbdata. :109.
does string pointed by mempool->label is referrenced after by any other part of squid after destroying MemPool.

if no then definately there is memory leak not deallocating memory assigned to string.

=== atit

_____________________________________________________________________
Get your internet connection from the fastest growing digital network.
ICENET
visit our site www.icenet.net
Received on Mon Jun 09 2003 - 23:00:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:07 MST