[ulog]Fix the problem of file_buf being released incorrectly

This commit is contained in:
Rbb666 2025-02-18 12:00:20 +08:00
parent a313d12ea0
commit 91beec4239
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ int ulog_file_backend_deinit(struct ulog_file_be *be)
be->cur_log_file_fd = -1;
}
if (!be->file_buf)
if (be->file_buf)
{
rt_free(be->file_buf);
be->file_buf = RT_NULL;