From 2fe79faf3d03e2c9e0c84bc5bf3154222d03b608 Mon Sep 17 00:00:00 2001 From: armink Date: Thu, 8 Nov 2018 10:59:25 +0800 Subject: [PATCH] [component][ulog] Fix a memory leak problem. --- components/utilities/ulog/ulog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/utilities/ulog/ulog.c b/components/utilities/ulog/ulog.c index bea6500f7e..a878baaa12 100644 --- a/components/utilities/ulog/ulog.c +++ b/components/utilities/ulog/ulog.c @@ -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 {