[PATCH] Fix instance of g_free applied to a dbus_mallocd string
Rob Taylor
robtaylor at floopily.org
Tue Jan 24 12:12:29 PST 2006
Whilst attempting to get the glib tests running with
g_mem_profile(glib_mem_profiler_table), I hit this bug. A patch is
attached that fixes the one instance I could find of g_free being
applied to memory not allocated via glib.
There's also an issue in glib that also stops dbus-glib GError handling
working with glib mem profiling - returns from vasprintf are g_strndup'd
rather than g_memdup'd, so the dbus type of the error gets lost. I've
attached a patch for glib if anyone is interested in trying this, though
obscure issues still remain with using dbus-glib with glib memory
profiling.
Thanks,
Rob Taylor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-g_free-of-dbus-allocated-sig.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060124/77239189/fix-g_free-of-dbus-allocated-sig.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glib-g_memdup-return-from-vsprintf.patch
Type: text/x-patch
Size: 427 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060124/77239189/glib-g_memdup-return-from-vsprintf.bin
More information about the dbus
mailing list