From: Yongjoo Ahn Date: Mon, 6 Jan 2025 09:41:09 +0000 (+0900) Subject: halapi: Fix memleak of hal_module_info->manifest X-Git-Tag: accepted/tizen/9.0/unified/20250118.074051~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=036204e3eb9ca781d4bcdf1b1c554cdee7045b4b;p=platform%2Fhal%2Fapi%2Fcommon.git halapi: Fix memleak of hal_module_info->manifest Let the module_info hashtable's destroy functions release manifest string allocated by `g_strdup`. Change-Id: I354644978bc23f912a6434c886a967c3e6cb63ac Signed-off-by: Yongjoo Ahn --- diff --git a/src/hal-api-conf.c b/src/hal-api-conf.c index 5aff07a..e373ef1 100644 --- a/src/hal-api-conf.c +++ b/src/hal-api-conf.c @@ -49,6 +49,7 @@ do { \ SAFE_FREE_AND_NULL(info->library_name); SAFE_FREE_AND_NULL(info->library_name_64bit); SAFE_FREE_AND_NULL(info->symbol_name); + SAFE_FREE_AND_NULL(info->manifest); SAFE_FREE_AND_NULL(info); } }