Skip to content

Commit

Permalink
[ulog]Fix the problem of file_buf being released incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
Rbb666 committed Feb 18, 2025
1 parent a313d12 commit 91beec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/utilities/ulog/backend/file_be.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 91beec4

Please sign in to comment.