summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2016-12-12 03:53:29 (GMT)
committerJiwoong Im <jiwoong.im@samsung.com>2017-04-26 02:35:59 (GMT)
commit0a0c01abdd14e160fb1eb3609151f4f22329a0f7 (patch)
tree3333464aedf7d7a1a8dfa201e846a2909aeaeb28
parent660cad6d9c412c0e3ce785e4e9fe329363d8d249 (diff)
downloadui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.zip
ui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.tar.gz
ui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.tar.bz2
- 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 bb88469..9ffc2cd 100644
--- a/client/ug-client.c
+++ b/client/ug-client.c
@@ -183,6 +183,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;
ret = app_control_reply_to_launch_request(reply, ad->request, (app_control_result_e)result);