Fix SVAVE Warning 59/163559/1 accepted/tizen/unified/20171212.171934 submit/tizen/20171212.053046
authorKiseok Chang <kiso.chang@samsung.com>
Tue, 12 Dec 2017 05:23:21 +0000 (14:23 +0900)
committerKiseok Chang <kiso.chang@samsung.com>
Tue, 12 Dec 2017 05:23:21 +0000 (14:23 +0900)
- Added codes to call package_manager_request_destroy() befaore return

Change-Id: I7e5556717e1f7fddef5ebf9783f112b36314e85e

setting-storage/src/setting-storage-applications.c

index dd9e99d3ce6f620d33980ecaf4ad7a62ed590623..ab0052546c5d9c3b21700de699cce09fa9a80477 100755 (executable)
@@ -819,6 +819,7 @@ static void _move_to_sd(SettingStorage *ad)
        ret = vconf_get_int(VCONFKEY_SYSMAN_MMC_STATUS, &sd_card_status);
        if (ret != 0) {
                dlog_print(DLOG_ERROR, LOG_TAG, "\033[0;31m[%s:%d] vconf_get_int() error: %s\033[0m", __FILE__, __LINE__, get_error_message(ret));
+               package_manager_request_destroy(request);
                return;
        }
 
@@ -828,6 +829,7 @@ static void _move_to_sd(SettingStorage *ad)
                move_type = PACKAGE_MANAGER_REQUEST_MOVE_TO_INTERNAL;
        } else {
                dlog_print(DLOG_WARN, LOG_TAG, "[%s:%d] Wrong sd card state: %d", basename(__FILE__), __LINE__, sd_card_status);
+               package_manager_request_destroy(request);
                return;
        }