libvirt/src/libxl
Frediano Ziglio d58ce13612 Implement dispose method for libxlDomainObjPrivate
When creating a timer/event handler reference counting is used. So it could
be possible (in theory) that libxlDomainObjPrivateFree is called with
reference counting >1. The problem is that libxlDomainObjPrivateFree leave
the object in an invalid state with ctx freed (but still having dandling
pointer). This can lead timer/event handler to core.

This patch implements a dispose method for libxlDomainObjPrivate, and moves
freeing the libxl ctx to the dispose method, ensuring the ctx is valid while
the object's reference count is > 0.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
2013-06-13 16:12:39 -06:00
..
libxl_conf.c libxl: allow only 'ethernet' and 'bridge' interfaces, allow script there 2013-06-13 15:22:11 -06:00
libxl_conf.h libxl: set bootloader for PV domains if not specified 2013-06-12 08:42:15 -06:00
libxl_driver.c Implement dispose method for libxlDomainObjPrivate 2013-06-13 16:12:39 -06:00
libxl_driver.h maint: don't use config.h in .h files 2013-06-05 05:53:25 -06:00