]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virscsi: Introduce virSCSIDeviceUsedByInfoFree
authorJohn Ferlan <jferlan@redhat.com>
Fri, 7 Mar 2014 14:46:21 +0000 (09:46 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 7 Mar 2014 17:24:44 +0000 (12:24 -0500)
commitea1eadd6a31f2cce3f62f17619eac04d59b68fde
tree489e962a20226edc92ca7d2b4107569c0326d1fb
parent8914b875ea7d95740aeb77e29fecaba88ef8c08c
virscsi: Introduce virSCSIDeviceUsedByInfoFree

This resolves a Coverity RESOURCE_LEAK issue introduced by commit
id 'de6fa535' where the virSCSIDeviceSetUsedBy() didn't VIR_FREE
the 'copy' or possibly VIR_STRDUP()'d values.  It also ensures that
the VIR_APPEND_ELEMENT is successful...
src/util/virscsi.c