summaryrefslogtreecommitdiff
path: root/wearable/app
diff options
context:
space:
mode:
authorJung Jihoon <jh8801.jung@samsung.com>2019-07-09 16:09:58 +0900
committerJung Jihoon <jh8801.jung@samsung.com>2019-07-09 16:10:34 +0900
commitcd99fb983afdd6d8bbcf68595d2b5354232e6ed6 (patch)
tree288571a65eaaa9cdd1394d08b23690a379f00871 /wearable/app
parentc83a4a0352121a521023739194edee878f874c59 (diff)
downloadug-nfc-efl-cd99fb983afdd6d8bbcf68595d2b5354232e6ed6.tar.gz
ug-nfc-efl-cd99fb983afdd6d8bbcf68595d2b5354232e6ed6.tar.bz2
ug-nfc-efl-cd99fb983afdd6d8bbcf68595d2b5354232e6ed6.zip
- 1048222, 1048244 : Resource Leak Change-Id: I856193980127bf14f12beb0a38bcb648bae486e2 Signed-off-by: Jung Jihoon <jh8801.jung@samsung.com>
Diffstat (limited to 'wearable/app')
-rwxr-xr-xwearable/app/src/nsa-view-tap-n-pay.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/wearable/app/src/nsa-view-tap-n-pay.c b/wearable/app/src/nsa-view-tap-n-pay.c
index cb1050c..2af6a07 100755
--- a/wearable/app/src/nsa-view-tap-n-pay.c
+++ b/wearable/app/src/nsa-view-tap-n-pay.c
@@ -281,6 +281,8 @@ static bool __set_default_wallet(item_data_t *item)
__launch_application(launch_app_id);
+ NSA_MEM_FREE(launch_app_id);
+
return true;
}
@@ -406,7 +408,10 @@ static Evas_Object *__gl_content_get(void *data, Evas_Object *obj,
char *appid;
winfo = g_array_index(ad->payment_wallet_list, wallet_info_t *, item->index);
- retv_if(winfo == NULL, NULL);
+ if (winfo == NULL) {
+ NSA_MEM_FREE(wallet_handler);
+ return NULL;
+ }
appid = winfo->appid;
if (strlen(wallet_handler) > 0 && strcmp(appid, wallet_handler) == 0) {
NSA_DEBUG("matched, [%s]", appid);