Skip to content
Commit 02fbe652 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Christopher Friedt
Browse files

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: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent 80b406d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment