From e21a4ac6c6f0491c059d151cf1a09ee58fc9a5c0 Mon Sep 17 00:00:00 2001 From: Sunmin Lee Date: Thu, 27 Sep 2018 13:45:42 +0900 Subject: [PATCH] Fix handle leak issue Change-Id: If34cfdb7aff571059e692981208c2bdbfae9bcb8 Signed-off-by: Sunmin Lee --- packaging/update-control.spec | 2 +- src/plugin/plugin.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"); -- 2.34.1