mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +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,
|
||||
_("Failed to opendir path '%s'"),
|
||||
SYSFS_INFINIBAND_DIR);
|
||||
goto cleanup;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (virAsprintf(ð_devpath, SYSFS_NET_DIR "%s/device/resource", ifname) < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user