From: Sunmin Lee Date: Thu, 27 Sep 2018 04:45:42 +0000 (+0900) Subject: Fix handle leak issue X-Git-Tag: submit/tizen/20180927.051357^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F71%2F190071%2F2;p=platform%2Fcore%2Fsystem%2Fupdate-control.git Fix handle leak issue Change-Id: If34cfdb7aff571059e692981208c2bdbfae9bcb8 Signed-off-by: Sunmin Lee --- diff --git a/packaging/update-control.spec b/packaging/update-control.spec index cfe2113..e34458c 100644 --- a/packaging/update-control.spec +++ b/packaging/update-control.spec @@ -1,5 +1,5 @@ Name: update-control -Version: 1.0.0 +Version: 1.0.1 Release: 0 License: Apache-2.0 Summary: Update Control API diff --git a/src/plugin/plugin.c b/src/plugin/plugin.c index 7f5d2df..b00ea97 100644 --- a/src/plugin/plugin.c +++ b/src/plugin/plugin.c @@ -655,7 +655,7 @@ API int update_control_download_package(void) retvm_if(!app_path, UPDATE_CONTROL_ERROR_SYSTEM_ERROR, "Failed to app_get_data_path"); download_url = get_download_url(update_info->package_uri); - download_path = g_strconcat(app_get_data_path(), FIRMWARE_FILE_NAME, NULL); + download_path = g_strconcat(app_path, FIRMWARE_FILE_NAME, NULL); if (!download_url) { _E("Failed to get download url");