summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2016-12-12 12:53:29 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2016-12-12 12:53:29 +0900
commit8c9bd92bffcdc382455d517f620d4eddf49b445f (patch)
treebefa09a9407dd3bc0aca55f8661cb85964728792
parent9e8f7391751a563617e68aa24990cf45981c051c (diff)
downloadui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.tar.gz
ui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.tar.bz2
ui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.zip
- Fix memory leak in using app_control_get_extra_data. Change-Id: I980ccd09b6cdd844be0edbaab17069390cb6118d Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
-rw-r--r--client/ug-client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/ug-client.c b/client/ug-client.c
index a672b45..72fb0ed 100644
--- a/client/ug-client.c
+++ b/client/ug-client.c
@@ -176,6 +176,9 @@ void _ug_client_result_cb(ui_gadget_h ug, app_control_h reply, void *priv)
result = APP_CONTROL_RESULT_SUCCEEDED;
}
+ if (value)
+ free(value);
+
ad = priv;
if (!ad) {
LOGE("appdata is null");