diff options
-rw-r--r-- | libkmod/libkmod-module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c index a160d5b..e3cc5a7 100644 --- a/libkmod/libkmod-module.c +++ b/libkmod/libkmod-module.c @@ -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; } |