diff options
author | Jiwoong Im <jiwoong.im@samsung.com> | 2016-12-12 12:53:29 +0900 |
---|---|---|
committer | Jiwoong Im <jiwoong.im@samsung.com> | 2016-12-12 12:53:29 +0900 |
commit | 8c9bd92bffcdc382455d517f620d4eddf49b445f (patch) | |
tree | befa09a9407dd3bc0aca55f8661cb85964728792 | |
parent | 9e8f7391751a563617e68aa24990cf45981c051c (diff) | |
download | ui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.tar.gz ui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.tar.bz2 ui-gadget-1-8c9bd92bffcdc382455d517f620d4eddf49b445f.zip |
Fix memory leaksubmit/tizen_3.0/20161212.044320accepted/tizen/3.0/wearable/20161213.024320accepted/tizen/3.0/tv/20161213.024310accepted/tizen/3.0/mobile/20161213.024257accepted/tizen/3.0/ivi/20161213.024335accepted/tizen/3.0/common/20161213.163604
- 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 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"); |