libsmbclient and still reachable memory.

Derrell Lipman derrell.lipman at unwireduniverse.com
Tue Jul 15 13:59:22 GMT 2008


On Tue, Jul 15, 2008 at 9:42 AM, Andreas Schneider <anschneider at suse.de>
wrote:

> Hi,
>
> I've written a small testcase which initializes libsmbclient and frees it.
>
> http://www.cynapses.org/tmp/leak/libsmbclient.c
>
> LEAK SUMMARY:
>   definitely lost: 80 bytes in 1 blocks.
>   indirectly lost: 9,656 bytes in 112 blocks.
>   possibly lost: 0 bytes in 0 blocks.
>   still reachable: 661,676 bytes in 218 blocks.
>   suppressed: 0 bytes in 0 blocks.
>
> So there are 600kb still reachable. Is there a reason why the case tables,
> interfaces, parameter etc. aren't freed?
>
> I've written a patch to free the memory which is attached.
>

Your patch looks good upon initial inspection.  I'll review it carefully
later this week, as I'm also looking into memory leak problems with
browsing.

Thanks!

Derrell


More information about the samba-technical mailing list