Fix Coverity issues 59/260059/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.5/unified/20211028.093116 accepted/tizen/7.0/unified/20221110.060227 accepted/tizen/7.0/unified/hotfix/20221116.104309 accepted/tizen/8.0/unified/20231005.092357 accepted/tizen/unified/20210624.131843 submit/tizen/20210623.003141 submit/tizen_6.5/20211028.161201 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorJihoon Jung <jh8801.jung@samsung.com>
Fri, 18 Jun 2021 04:54:28 +0000 (13:54 +0900)
committerJihoon Jung <jh8801.jung@samsung.com>
Fri, 18 Jun 2021 04:55:27 +0000 (13:55 +0900)
Change-Id: Ib47c40ec2f890dbc5c7111b1badb0f8a13c0dbc2
Signed-off-by: Jihoon Jung <jh8801.jung@samsung.com>
mobile/src/ug-nfc-setting-main.c
wearable/app/src/nsa-view-tap-n-pay.c

index 850f439..b2d90dd 100755 (executable)
@@ -83,6 +83,8 @@ static bool __reply_to_launch_request(app_control_h service, app_control_result_
                                app_control_reply_to_launch_request(reply, service, result);
                                ret = true;
                        }
+
+                       free(operation);
                }
 
                app_control_destroy(reply);
index 2af6a07..6f5da50 100755 (executable)
@@ -192,6 +192,9 @@ static char *__get_launch_app_id(char *pkgid)
                return strdup(pkgid);
 
        ret = pkgmgrinfo_pkginfo_get_mainappid(pkginfo, &main_appid);
+
+       pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo);
+
        if (ret == 0)
                return strdup(main_appid);
        else