projects
/
platform
/
core
/
connectivity
/
ua-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03e2c8a
)
Fixed memory leak in _uam_core_deinit()
50/208850/1
author
Atul Rai
<a.rai@samsung.com>
Tue, 18 Jun 2019 10:33:39 +0000
(16:03 +0530)
committer
saerome kim
<saerome.kim@samsung.com>
Mon, 1 Jul 2019 02:03:45 +0000
(11:03 +0900)
Change-Id: I841122907ab0b3d93e02697b8d44d085cded819f
Signed-off-by: Atul Rai <a.rai@samsung.com>
ua-daemon/src/ua-manager-core.c
patch
|
blob
|
history
diff --git
a/ua-daemon/src/ua-manager-core.c
b/ua-daemon/src/ua-manager-core.c
index
e9b6877
..
bee54c5
100644
(file)
--- a/
ua-daemon/src/ua-manager-core.c
+++ b/
ua-daemon/src/ua-manager-core.c
@@
-1985,6
+1985,19
@@
void _uam_core_deinit(void)
g_slist_free(users);
users = NULL;
+ /* Release allocated memory for services */
+ for (l = services; NULL != l; l = g_slist_next(l)) {
+ uam_db_service_info_t *service = l->data;
+
+ if (!service)
+ continue;
+
+ g_free(service->name);
+ g_free(service);
+ }
+ g_slist_free(services);
+ services = NULL;
+
FUNC_EXIT;
}