projects
/
platform
/
core
/
connectivity
/
bluetooth-frwk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
754d103
)
Resolve memory leak in OTP
46/224646/4
author
Amit Purwar
<amit.purwar@samsung.com>
Wed, 12 Feb 2020 05:54:04 +0000
(11:24 +0530)
committer
Pyun DoHyun
<dh79.pyun@samsung.com>
Thu, 13 Feb 2020 01:52:53 +0000
(
01:52
+0000)
Resolve memory leak related to g_variant_iter_loop
Change-Id: I7b5f04c36f326a32a2b88ca5cbcf5689fc0e8af4
Signed-off-by: Amit Purwar <amit.purwar@samsung.com>
bt-otp/bt-otpserver.c
patch
|
blob
|
history
diff --git
a/bt-otp/bt-otpserver.c
b/bt-otp/bt-otpserver.c
index
c588be9
..
95b6e39
100644
(file)
--- a/
bt-otp/bt-otpserver.c
+++ b/
bt-otp/bt-otpserver.c
@@
-1972,6
+1972,7
@@
void _bt_otp_gatt_char_property_changed_event(GVariant *msg,
} else {
BT_ERR("Array Len 0");
}
+ g_variant_unref(val);
} else {
BT_ERR("var==NULL");
}
@@
-2133,6
+2134,7
@@
void _bt_otp_device_property_event_filter(GDBusConnection *connection,
}
}
}
+ g_variant_unref(val);
}
int _bt_otp_init_event_receiver()