halapi: Fix memleak of hal_module_info->manifest 61/317661/2
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 6 Jan 2025 09:41:09 +0000 (18:41 +0900)
committerYongjoo Ahn <yongjoo1.ahn@samsung.com>
Tue, 7 Jan 2025 03:27:52 +0000 (03:27 +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 8e57d8a3e2ecfff1134396f386197135067779ba..fc00bf3cb5a7b86eb31e433bf9619d38f0ff5a0b 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);
        }
 }