diff options
| author | Rbb666 <[email protected]> | 2025-02-18 12:00:20 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2025-02-18 14:31:03 +0800 |
| commit | 91beec4239cd03f039daa89d78d89fcabfce1357 (patch) | |
| tree | d90055913316d2a67f6bb3506995883dda6e71be | |
| parent | a313d12ea022f41d6e77195a73a0e624b1f70f03 (diff) | |
[ulog]Fix the problem of file_buf being released incorrectly
| -rw-r--r-- | components/utilities/ulog/backend/file_be.c | 2 |
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; |
