summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRbb666 <[email protected]>2025-02-18 12:00:20 +0800
committerRbb666 <[email protected]>2025-03-10 22:38:42 +0800
commit7d289923e99365e9d0f049892a482db76b3105b0 (patch)
tree7bcd61c639e27a5b0ee4c9d127bfd402c684f542
parentfae3356acddabb197ce1986569583539fc6ce009 (diff)
[ulog]Fix the problem of file_buf being released incorrectly
-rw-r--r--components/utilities/ulog/backend/file_be.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/utilities/ulog/backend/file_be.c b/components/utilities/ulog/backend/file_be.c
index a57f2c82a7..33660ddab5 100644
--- a/components/utilities/ulog/backend/file_be.c
+++ b/components/utilities/ulog/backend/file_be.c
@@ -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;