projects
/
platform
/
hal
/
api
/
common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
293201e
)
halapi: Fix memleak of hal_module_info->manifest
61/317661/2
author
Yongjoo Ahn
<yongjoo1.ahn@samsung.com>
Mon, 6 Jan 2025 09:41:09 +0000
(18:41 +0900)
committer
Yongjoo 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
patch
|
blob
|
history
diff --git
a/src/hal-api-conf.c
b/src/hal-api-conf.c
index 8e57d8a3e2ecfff1134396f386197135067779ba..fc00bf3cb5a7b86eb31e433bf9619d38f0ff5a0b 100644
(file)
--- 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);
}
}