From 69102f8a2ef538193393e4033f7622d64768e909 Mon Sep 17 00:00:00 2001 From: chanywa Date: Mon, 26 Mar 2018 15:11:14 +0900 Subject: [PATCH] Fix SVACE & Coverity issues #3 Change-Id: I2856185531e57ac52d4a31464482e2e66a1d3fcb --- location/manager/location-wps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/location/manager/location-wps.c b/location/manager/location-wps.c index 99c0458..7962ecb 100644 --- a/location/manager/location-wps.c +++ b/location/manager/location-wps.c @@ -622,6 +622,8 @@ static gboolean __single_location_timeout_cb(void *data) g_signal_emit(self, signals[LOCATION_UPDATED], 0, LOCATION_ERROR_NOT_AVAILABLE, pos, vel, NULL); location_wps_stop(self); + if (pos) location_position_free(pos); + if (vel) location_velocity_free(vel); return FALSE; } -- 2.7.4