[libvirt] [PATCH] libxl: unref DomainObjPrivate on error path

2013-08-15 Thread Jim Fehlig
There is a potential leak of a newly created libxlDomainObjPrivate when subsequent allocation of the object's chrdev field fails. Unref the object on such an error so that it is properly disposed. --- src/libxl/libxl_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

Re: [libvirt] [PATCH] libxl: unref DomainObjPrivate on error path

2013-08-15 Thread Eric Blake
On 08/15/2013 10:23 AM, Jim Fehlig wrote: There is a potential leak of a newly created libxlDomainObjPrivate when subsequent allocation of the object's chrdev field fails. Unref the object on such an error so that it is properly disposed. --- src/libxl/libxl_driver.c | 4 +++- 1 file

Re: [libvirt] [PATCH] libxl: unref DomainObjPrivate on error path

2013-08-15 Thread Jim Fehlig
Eric Blake wrote: On 08/15/2013 10:23 AM, Jim Fehlig wrote: There is a potential leak of a newly created libxlDomainObjPrivate when subsequent allocation of the object's chrdev field fails. Unref the object on such an error so that it is properly disposed. --- src/libxl/libxl_driver.c |