Skip to content

Commit a632051

Browse files
authored
[ulog]Fix the problem of file_buf being released incorrectly
1 parent a313d12 commit a632051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/utilities/ulog/backend/file_be.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ int ulog_file_backend_deinit(struct ulog_file_be *be)
203203
be->cur_log_file_fd = -1;
204204
}
205205

206-
if (!be->file_buf)
206+
if (be->file_buf)
207207
{
208208
rt_free(be->file_buf);
209209
be->file_buf = RT_NULL;

0 commit comments

Comments
 (0)