halapi: Fix memleak of hal_module_info->manifest 13/317713/1
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 6 Jan 2025 09:41:09 +0000 (18:41 +0900)
committeryoungjae cho <y0.cho@samsung.com>
Tue, 7 Jan 2025 03:11:56 +0000 (03:11 +0000)
Let the module_info hashtable's destroy functions release manifest
string allocated by `g_strdup`.

Change-Id: I354644978bc23f912a6434c886a967c3e6cb63ac
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
src/hal-api-conf.c

index 5aff07a878f2ad6438e88f157c3ea9b754234096..e373ef1bd04c4a623877635565f58a4607a1516c 100644 (file)
@@ -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);
        }
 }