[libvirt] [libvirt-glib v2] gobject: Fix GMutex leak

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Wed Nov 14 14:27:20 UTC 2012

On Wed, Nov 14, 2012 at 3:16 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> When GLib deprecated g_mutex_new/g_mutex_free, we introduced a
> compatibility wrapper to implement these using non-deprecated
> functions. This was done by allocating 0-filled memory by the
> mutex, and then letting GLib initialize the structure when
> needed. However, we must call g_mutex_clear when destroying
> the mutex to free these resources, which this patch fix.



Zeeshan Ali (Khattak)
FSF member#5124

More information about the libvir-list mailing list