diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-12-12 12:53:29 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2017-04-26 11:35:59 +0900 |
commit | 0a0c01abdd14e160fb1eb3609151f4f22329a0f7 (patch) | |
tree | 3333464aedf7d7a1a8dfa201e846a2909aeaeb28 | |
parent | 660cad6d9c412c0e3ce785e4e9fe329363d8d249 (diff) | |
download | ui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.tar.gz ui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.tar.bz2 ui-gadget-1-0a0c01abdd14e160fb1eb3609151f4f22329a0f7.zip |
Fix memory leak
- 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.c | 3 |
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); |