]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix leak in SCSI storage backend
authorDaniel P. Berrange <berrange@redhat.com>
Fri, 10 Dec 2010 12:26:41 +0000 (12:26 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 15 Feb 2011 11:41:48 +0000 (11:41 +0000)
The SCSI storage backend leaks a string containing the pathname
for each block device it discovers

* src/storage/storage_backend_scsi.c: Free the device name

src/storage/storage_backend_scsi.c

index 95ae546457a3e50cbef5dbfeecae2f2a07f2bd1e..d880d65ec372eca6cb9bcd041a9faba7d5d5d7b5 100644 (file)
@@ -455,6 +455,7 @@ processLU(virStoragePoolObjPtr pool,
     VIR_FREE(type_path);
 
 out:
+    VIR_FREE(block_device);
     return retval;
 }