X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Flocations.c;h=36165c57c4a135acae9887242b5f5653518593a6;hb=256fbac688cab362645a30756c4ecbb4e71c9cd9;hp=3fe808222496ee3a07405898d634136559cc3a75;hpb=509c90944c54f26c9cf39defb7fc18593a6f4eff;p=platform%2Fcore%2Fapi%2Flocation-manager.git 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