From fac34ec33499c1304e7255e976a4c3ddc90a7241 Mon Sep 17 00:00:00 2001 From: chanywa Date: Tue, 20 Mar 2018 11:52:56 +0900 Subject: [PATCH] Fix SVACE & Coverity issues Change-Id: I6e07c91f2eee642b0aa42530a3ab6d5649e7f89a --- location/manager/location-gps.c | 2 ++ packaging/liblbs-location.spec | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.7.4