From: Abhimanyu Swami Date: Fri, 11 Oct 2024 13:03:57 +0000 (+0530) Subject: Remove unsafe free X-Git-Tag: accepted/tizen/unified/20241015.153119^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d22b762509932dfb99607b2ae6c0d820b1bcd27c;p=platform%2Fcore%2Flocation%2Flbs-server-plugin-replay.git Remove unsafe free Change-Id: Iab34eb42b7f583f421799c8b4f698561a5689376 Signed-off-by: Abhimanyu Swami --- diff --git a/gps-plugin/src/gps_plugin_replay.c b/gps-plugin/src/gps_plugin_replay.c index 8b5506b..143ef8f 100755 --- a/gps-plugin/src/gps_plugin_replay.c +++ b/gps-plugin/src/gps_plugin_replay.c @@ -455,8 +455,6 @@ gboolean gps_plugin_get_nmea_fd(replay_timeout *timer) const char *nmea_file_path = tzplatform_mkpath(TZ_SYS_SHARE, "location/replay/"); snprintf(replay_file_path, sizeof(replay_file_path), "%s%s", nmea_file_path, nmea_file_name); SECLOG_PLUGIN(DBG_ERR, "check custom replay : %s", replay_file_path); - if(nmea_file_name) - free(nmea_file_name); timer->fd = fopen(replay_file_path, "r"); if (timer->fd == NULL) {