Memory leaks in glib bindings

Jakub Stachowski stachowski at hypair.net
Wed Mar 1 13:54:45 PST 2006


Dnia środa, 1 marca 2006 18:36, Havoc Pennington napisał:
> On Tue, 2006-02-28 at 00:28 +0100, Jakub Stachowski wrote:
> > Hello,
> >
> > I have been converting some of my server-side apps to D-Bus (instead of
> > really ugly self-made "bus") recently using glib bindings. After lots of
> > work (second goal of rewrite was learning glib from scratch) it works
> > quite good, with exception of pretty bad memory leaks - after ~2 days
> > memory usage goes from 2M to 80M.
> > Valgrind log: http://aeris.hypair.net:8001/valgrind-log
> >
> > This is after finding and fixing one leak - patch at
> > http://aeris.hypair.net:8001/glib-memleak-1.patch
>
> Can you put this in bugzilla btw?

Done, bug #6083

>
> > Code itself: http://aeris.hypair.net:8001/client-list.c ,
> > http://aeris.hypair.net:8001/client-list.h ,
> > http://aeris.hypair.net:8001/client-list.xml
> >
> > I wonder about record 5 from valgrind log. Am I doing something wrong
> > with marshalling array of structs?
>
> I haven't had time to look at this, is why I didn't reply to your mail
> earlier... I don't know offhand how the glib bindings mem management
> works.
>
> Havoc


More information about the dbus mailing list