Re: [libvirt] [PATCH v2] lxc: monitor now holds a reference to the domain

2016-12-08 Thread Michal Privoznik
On 08.12.2016 16:29, Cédric Bosdonnat wrote: > If the monitor doesn't hold a reference to the domain object > the object may be destroyed before the monitor actually stops. > --- > v2: Moved vm ref upper, removed vm unref in error case. > > src/lxc/lxc_monitor.c | 3 ++- > 1 file changed, 2

[libvirt] [PATCH v2] lxc: monitor now holds a reference to the domain

2016-12-08 Thread Cédric Bosdonnat
If the monitor doesn't hold a reference to the domain object the object may be destroyed before the monitor actually stops. --- v2: Moved vm ref upper, removed vm unref in error case. src/lxc/lxc_monitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git