]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix possible memory leak in migration param processing
authorJohn Ferlan <jferlan@redhat.com>
Tue, 17 Apr 2018 15:43:30 +0000 (11:43 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 19 Apr 2018 18:25:11 +0000 (14:25 -0400)
commit6a6a5463af33e693c8a2c737a41e6682a78a6a26
treefffdb0d111fb59e8465589ed50335be2eba31db5
parent6df5d7772330b20ea81f9f989afe3dc789b9ca31
qemu: Fix possible memory leak in migration param processing

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 <jferlan@redhat.com>
src/qemu/qemu_migration_params.c