diff --git a/kernel/core_hook.c b/kernel/core_hook.c index fa555c20..988816e1 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -592,6 +592,7 @@ static void try_umount(const char *mnt, bool check_mnt, int flags) // we are only interest in some specific mounts if (check_mnt && !should_umount(&path)) { + path_put(&path); return; }