diff options
author | chanywa <cbible.kim@samsung.com> | 2018-03-20 11:49:11 +0900 |
---|---|---|
committer | chanywa <cbible.kim@samsung.com> | 2018-03-20 11:49:11 +0900 |
commit | 256fbac688cab362645a30756c4ecbb4e71c9cd9 (patch) | |
tree | a105c55ba60cb042800ea9a16c3517d6aece694d | |
parent | 509c90944c54f26c9cf39defb7fc18593a6f4eff (diff) | |
download | location-manager-256fbac688cab362645a30756c4ecbb4e71c9cd9.tar.gz location-manager-256fbac688cab362645a30756c4ecbb4e71c9cd9.tar.bz2 location-manager-256fbac688cab362645a30756c4ecbb4e71c9cd9.zip |
Fix SVACE & Coverity issuessubmit/tizen_5.0/20181101.000002submit/tizen/20180321.023238submit/tizen/20180320.110142accepted/tizen/unified/20180321.134842accepted/tizen/5.0/unified/20181102.014313accepted/tizen_5.0_unified
Change-Id: If1615d3934ade5a42c8b00bb42966a2f81fa4eb4
-rw-r--r-- | packaging/capi-location-manager.spec | 2 | ||||
-rwxr-xr-x | src/locations.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/packaging/capi-location-manager.spec b/packaging/capi-location-manager.spec index 4341f9c..72592cb 100644 --- a/packaging/capi-location-manager.spec +++ b/packaging/capi-location-manager.spec @@ -1,6 +1,6 @@ Name: capi-location-manager Summary: A Location Manager library in Tizen Native API -Version: 0.8.1 +Version: 0.8.2 Release: 1 Group: Location/API License: Apache-2.0 diff --git a/src/locations.c b/src/locations.c index 3fe8082..36165c5 100755 --- a/src/locations.c +++ b/src/locations.c @@ -1235,6 +1235,8 @@ EXPORT_API int location_manager_get_distance(double start_latitude, double start LocationPosition *end = location_position_new(0, end_latitude, end_longitude, 0, LOCATION_STATUS_2D_FIX); ret = location_get_distance(start, end, &u_distance); + location_position_free(start); + location_position_free(end); if (ret != LOCATION_ERROR_NONE) return __convert_error_code(ret); //LCOV_EXCL_LINE |