mirror of https://github.com/RT-Thread/rt-thread
[ulog]Fix the problem of file_buf being released incorrectly
This commit is contained in:
parent
a313d12ea0
commit
91beec4239
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue