Fix SVACE & Coverity issues #3 19/173819/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.0 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181102.015928 accepted/tizen/5.5/unified/20191031.025036 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084801 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115359 accepted/tizen/unified/20180327.055748 submit/tizen/20180326.061351 submit/tizen_5.0/20181101.000003 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
authorchanywa <cbible.kim@samsung.com>
Mon, 26 Mar 2018 06:11:14 +0000 (15:11 +0900)
committerchanywa <cbible.kim@samsung.com>
Mon, 26 Mar 2018 06:11:14 +0000 (15:11 +0900)
Change-Id: I2856185531e57ac52d4a31464482e2e66a1d3fcb

location/manager/location-wps.c

index 99c0458..7962ecb 100644 (file)
@@ -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;
 }