mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-17 08:03:45 +08:00
[ulog]Fix the problem of file_buf being released incorrectly
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user