logging: fs: fix leak of opened directories in check_log_file_exist()
Opened directory descriptor is leaked when returning 1. Fix that by utilizing goto in function return path. Fixes: 6b18e699 ("subsys/loggin/log_backend_fs: added recovery after file lost") Signed-off-by:Marcin Niestroj <m.niestroj@grinn-global.com>
Loading
Please sign in to comment