From: chanywa Date: Tue, 20 Mar 2018 02:52:56 +0000 (+0900) Subject: Fix SVACE & Coverity issues X-Git-Tag: submit/tizen/20180320.110142^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F173184%2F2;p=platform%2Fcore%2Flocation%2Flbs-location.git Fix SVACE & Coverity issues Change-Id: I6e07c91f2eee642b0aa42530a3ab6d5649e7f89a --- diff --git a/location/manager/location-gps.c b/location/manager/location-gps.c index 9372b82..d493dfe 100644 --- a/location/manager/location-gps.c +++ b/location/manager/location-gps.c @@ -911,6 +911,8 @@ __single_location_timeout_cb(void *data) g_signal_emit(self, signals[LOCATION_UPDATED], 0, LOCATION_ERROR_NOT_AVAILABLE, pos, vel, NULL); location_gps_stop(self); + if (pos) location_position_free(pos); + if (vel) location_velocity_free(vel); return FALSE; } diff --git a/packaging/liblbs-location.spec b/packaging/liblbs-location.spec index 1f94b7e..cbe8f14 100755 --- a/packaging/liblbs-location.spec +++ b/packaging/liblbs-location.spec @@ -1,6 +1,6 @@ Name: liblbs-location Summary: Location Based Service Library -Version: 1.4.6 +Version: 1.4.7 Release: 1 Group: Location/Libraries License: Apache-2.0