memory leak while calling lp_servicename in infinite loop
Gerald Carter
jerry at samba.org
Mon Mar 25 09:31:06 GMT 2002
On Mon, 25 Mar 2002, Sunil Kumar wrote:
> Hi,
> I think there is a memory leak in samba code as while
> lp_servicename in an infinite loop,Memory consumed by smbd process
> increases every times it iterates thru the loop.
>
> i.e
> int i;
> while(1) {
> lp_servicename(i);++i
> }
We release this is a main loop IIRC. It's not leaked really.
We know exactly where it is. It's just not being freed right
here. It is freed elsewhere.
cheers, jerry
---------------------------------------------------------------------
Hewlett-Packard http://www.hp.com
SAMBA Team http://www.samba.org
-- http://www.plainjoe.org
"Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2
--"I never saved anything for the swim back." Ethan Hawk in Gattaca--
More information about the samba-technical
mailing list