Fix SVACE & Coverity issues 84/173184/2 submit/tizen/20180320.110142
authorchanywa <cbible.kim@samsung.com>
Tue, 20 Mar 2018 02:52:56 +0000 (11:52 +0900)
committerchanywa <cbible.kim@samsung.com>
Tue, 20 Mar 2018 02:53:35 +0000 (11:53 +0900)
Change-Id: I6e07c91f2eee642b0aa42530a3ab6d5649e7f89a

location/manager/location-gps.c
packaging/liblbs-location.spec

index 9372b82..d493dfe 100644 (file)
@@ -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;
 }
 
index 1f94b7e..cbe8f14 100755 (executable)
@@ -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