]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vbox: Fix resource leak
authorJohn Ferlan <jferlan@redhat.com>
Tue, 5 Jun 2018 12:18:32 +0000 (08:18 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 11 Jun 2018 22:33:13 +0000 (18:33 -0400)
commitb8844727c904ebfc16c3d5312101b3f5ec5e264f
tree153e764076bc4a104155d1613c8155b2775096fc
parentda5b1a918863145287015b67083944481609b774
vbox: Fix resource leak

Need to free the allocated hardDiskToOpen array. The contents of the
array are just pointers returned by virVBoxSnapshotConfHardDiskByLocation
and not allocated AFAICT so they don't need to also be freed as well.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Katerina Koukiou <kkoukiou@redhat.com>
src/vbox/vbox_common.c