Re: [libvirt] virStream double unref in virChrdevOpen()

2013-05-24 Thread Eric Blake
On 05/18/2013 02:22 AM, Sergey Fionov wrote: Hello, There is double unref virChrdevOpen() (src/conf/virchrdev.c) when error occured. if (virStreamRef(st) 0) { virMutexUnlock(devs-lock); return -1; } Thanks again for the report. I didn't see a reply to this

[libvirt] virStream double unref in virChrdevOpen()

2013-05-18 Thread Sergey Fionov
Hello, There is double unref virChrdevOpen() (src/conf/virchrdev.c) when error occured. if (virStreamRef(st) 0) { virMutexUnlock(devs-lock); return -1; } ... if (virHashAddEntry(devs-hash, path, st) 0) goto error; ... if (virFDStreamOpenFile(st,