]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: plug iscsi memory leak
authorEric Blake <eblake@redhat.com>
Fri, 21 Oct 2011 22:30:22 +0000 (16:30 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 25 Oct 2011 01:32:25 +0000 (19:32 -0600)
commit79052a76b5783008193e9ac3ebb348208622c323
tree0c30a1692dd91c60ab746948e06aa64ddcaf1b63
parent69d044c034dcc2b9af137a6d36f2a54d8944b8fc
storage: plug iscsi memory leak

Detected by Coverity.  virStoragePoolSourceFree does not free the
actual passed-in pointer.  A bigger patch would be to rename it
virStoragePoolSourceClear to match behavior, or even split it into
two functions depending on needed behavior; but this is the minimal
fix to the one location out of eight that leaked memory.

* src/storage/storage_backend_iscsi.c
(virStorageBackendISCSIFindPoolSources): Free memory.
src/storage/storage_backend_iscsi.c