From: Daniel P. Berrange Date: Fri, 10 Dec 2010 12:26:41 +0000 (+0000) Subject: Fix leak in SCSI storage backend X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7020ffc0edf3bde27b5b906258f0a5727881f43f;p=libvirt.git Fix leak in SCSI storage backend 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 --- diff --git a/src/storage/storage_backend_scsi.c b/src/storage/storage_backend_scsi.c index 95ae546457..d880d65ec3 100644 --- a/src/storage/storage_backend_scsi.c +++ b/src/storage/storage_backend_scsi.c @@ -455,6 +455,7 @@ processLU(virStoragePoolObjPtr pool, VIR_FREE(type_path); out: + VIR_FREE(block_device); return retval; }