Re: Gio & memory management



Hello,

Le 14/10/2008, nico <nico yojik eu> a Ãcrit :
And here is the source code of the program:
http://yojik.shtooka.net/gio.c
I didn't run nor check extensively the program but maybe there is a
memory leak coming from the path you build with g_build_filename(). The
documentation states that the returned string must be free. And a quick
look to your source doesn't make this g_free() call appears to me...
http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-build-filename

So after the recursive call I would have put a g_free() there.

Damien.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]