mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-16 01:05:15 +08:00
[ulog]Fix the problem of file_buf being released incorrectly
This commit is contained in:
1 parent
a313d12ea0
commit
91beec4239
1 file changed
+1
-1
@@ -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