mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
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
This commit is contained in:
parent
c7a6fc375a
commit
7020ffc0ed
@ -455,6 +455,7 @@ processLU(virStoragePoolObjPtr pool,
|
|||||||
VIR_FREE(type_path);
|
VIR_FREE(type_path);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
VIR_FREE(block_device);
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user