Memory leaks in smbd ?
Volker Lendecke
Volker.Lendecke at SerNet.DE
Thu Nov 13 15:56:09 GMT 2008
On Thu, Nov 13, 2008 at 04:54:35PM +0100, Martin Zielinski wrote:
> Thanks for the hints, Jeremy!
>
> I've looked quickly through the code of 3.2.4 and I think there are some
> places that should be fixed.
>
> Some are obvious, some may be wrong as the memory is linked to another
> struct and will be destroyed later.
> However it is not allways visible in the code. Sometimes it is freed on
> an error case and later in the same function it is not.
>
> I found that the output of the smbcontrol program attached to my first
> post is caused by a samu - allocation in pdb_getsampwnam ().
>
> I think, that there is a bug in the memcache_add function.
> I allready asked Volker Lendecke in the "memory usage" thread on the
> samba mailing list about that!
>
> Attached is a diff against 3.2.4 which (hopefully) points to one or the
> other potential leak.
No diff around.
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081113/ab2be45a/attachment.bin
More information about the samba-technical
mailing list