From d22b762509932dfb99607b2ae6c0d820b1bcd27c Mon Sep 17 00:00:00 2001 From: Abhimanyu Swami Date: Fri, 11 Oct 2024 18:33:57 +0530 Subject: [PATCH] Remove unsafe free Change-Id: Iab34eb42b7f583f421799c8b4f698561a5689376 Signed-off-by: Abhimanyu Swami --- gps-plugin/src/gps_plugin_replay.c | 2 -- 1 file changed, 2 deletions(-) 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) { -- 2.34.1