Re: [libvirt] [PATCH] CONF: bug, release 'alloc' object in cleanup

2019-04-29 Thread Wang, Huaqiang
My bad. Thanks. > -Original Message- > From: Peter Krempa [mailto:pkre...@redhat.com] > Sent: Monday, April 29, 2019 3:00 PM > To: Wang, Huaqiang > Cc: libvir-list@redhat.com > Subject: Re: [libvirt] [PATCH] CONF: bug, release 'alloc' object in cleanup > &

Re: [libvirt] [PATCH] CONF: bug, release 'alloc' object in cleanup

2019-04-29 Thread Peter Krempa
On Sun, Apr 28, 2019 at 16:52:41 +0800, Wang Huaqiang wrote: > In case error happens before 'alloc' is transferred to 'resctrl', > the 'alloc' object should be released. In current upstream it uses VIR_AUTOUNREF, thus the object is unref'd automatically when exiting the function. signature.asc

[libvirt] [PATCH] CONF: bug, release 'alloc' object in cleanup

2019-04-28 Thread Wang Huaqiang
In case error happens before 'alloc' is transferred to 'resctrl', the 'alloc' object should be released. Signed-off-by: Wang Huaqiang --- src/conf/domain_conf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 6331424..7d20276 100644