mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-19 21:16:11 +07:00
Close /sys/module/$NAME directory if opening /proc/module fails.
This commit is contained in:
parent
c1bc88c98e
commit
30bfd48aef
@ -1802,6 +1802,7 @@ KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
|
||||
int err = -errno;
|
||||
ERR(mod->ctx,
|
||||
"could not open /proc/modules: %s\n", strerror(errno));
|
||||
close(dfd);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user