mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
util: Avoid calling closedir(NULL)
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
50129dcc9c
commit
04e10925a1
@ -3119,7 +3119,7 @@ virNetDevRDMAFeature(const char *ifname,
|
|||||||
virReportSystemError(errno,
|
virReportSystemError(errno,
|
||||||
_("Failed to opendir path '%s'"),
|
_("Failed to opendir path '%s'"),
|
||||||
SYSFS_INFINIBAND_DIR);
|
SYSFS_INFINIBAND_DIR);
|
||||||
goto cleanup;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (virAsprintf(ð_devpath, SYSFS_NET_DIR "%s/device/resource", ifname) < 0)
|
if (virAsprintf(ð_devpath, SYSFS_NET_DIR "%s/device/resource", ifname) < 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user