mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-19 03:51:28 +08:00
[component][ulog] Fix a memory leak problem.
This commit is contained in:
parent
0f1d437844
commit
2fe79faf3d
@ -790,6 +790,7 @@ int ulog_tag_lvl_filter_set(const char *tag, rt_uint32_t level)
|
||||
{
|
||||
/* remove current tag's level filter when input level is the lowest level */
|
||||
rt_slist_remove(&ulog.filter.tag_lvl_list, &tag_lvl->list);
|
||||
rt_free(tag_lvl);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user