Re: [libvirt] [PATCH 6/7] qemu: Fix possible memory leak in migration param processing

2018-04-18 Thread Peter Krempa
On Tue, Apr 17, 2018 at 12:22:17 -0400, John Ferlan wrote: > If virJSONValueArraySize(caps) <= 0, then we will still need to > virJSONValueFree(caps) because qemuMonitorSetMigrationCapabilities > won't consume it. > > Found by Coverity > > Signed-off-by: John Ferlan > --- >

[libvirt] [PATCH 6/7] qemu: Fix possible memory leak in migration param processing

2018-04-17 Thread John Ferlan
If virJSONValueArraySize(caps) <= 0, then we will still need to virJSONValueFree(caps) because qemuMonitorSetMigrationCapabilities won't consume it. Found by Coverity Signed-off-by: John Ferlan --- src/qemu/qemu_migration_params.c | 1 + 1 file changed, 1 insertion(+) diff