mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
node_device: udev: Fix memory leak
We are setting the same property two different ways without free'ing in between. Just drop the second assignment.
This commit is contained in:
parent
c198f51a10
commit
d0b97e820c
@ -997,11 +997,7 @@ static int udevProcessStorage(struct udev_device *device,
|
||||
goto out;
|
||||
}
|
||||
data->storage.block = strdup(devnode);
|
||||
if (udevGetStringProperty(device,
|
||||
"DEVNAME",
|
||||
&data->storage.block) == PROPERTY_ERROR) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (udevGetStringProperty(device,
|
||||
"ID_BUS",
|
||||
&data->storage.bus) == PROPERTY_ERROR) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user