Fix handle leak issue 71/190071/2 accepted/tizen/5.0/unified/20181102.021039 accepted/tizen/unified/20180927.073815 submit/tizen/20180927.051357 submit/tizen_5.0/20181101.000004
authorSunmin Lee <sunm.lee@samsung.com>
Thu, 27 Sep 2018 04:45:42 +0000 (13:45 +0900)
committerSunmin Lee <sunm.lee@samsung.com>
Thu, 27 Sep 2018 05:04:24 +0000 (14:04 +0900)
Change-Id: If34cfdb7aff571059e692981208c2bdbfae9bcb8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
packaging/update-control.spec
src/plugin/plugin.c

index cfe211339895c7211f9874bf08f4d778755c0e8c..e34458c21095420f6fbb7ec0673e13fece2361b4 100644 (file)
@@ -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
index 7f5d2df3699bbdd7a2ffec2154650d3aa5a94dd5..b00ea97b76a38996b70ecd5408983d75dd60dc5f 100644 (file)
@@ -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");