projects
/
platform
/
core
/
connectivity
/
mobileap-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08da678
)
Fixed memory leak
59/88159/3
author
Milind Ramesh Murhekar
<m.murhekar@samsung.com>
Wed, 14 Sep 2016 06:16:38 +0000
(11:46 +0530)
committer
Milind Ramesh Murhekar
<m.murhekar@samsung.com>
Thu, 22 Sep 2016 05:06:50 +0000
(10:36 +0530)
Description: Memory Leak issue found for info,
for which memory is allocated, also it avoid DEREF_AFTER_NULL
for EXIT condition
Change-Id: I2e5f62a3e3597b4fa8fe24814520ba6eb0a5dff1
Signed-off-by: Milind Ramesh Murhekar <m.murhekar@samsung.com>
src/mobileap_main.c
patch
|
blob
|
history
diff --git
a/src/mobileap_main.c
b/src/mobileap_main.c
index
731b96a
..
3b82e7a
100755
(executable)
--- a/
src/mobileap_main.c
+++ b/
src/mobileap_main.c
@@
-493,6
+493,10
@@
static void __handle_dnsmasq_dhcp_status_changed_cb(GDBusConnection *connection,
info->tm = tm;
if (_add_station_info(info) != MOBILE_AP_ERROR_NONE) {
ERR("_add_station_info is failed\n");
+ if (info) {
+ g_free(info->hostname);
+ g_free(info);
+ }
goto EXIT;
}