From 353744e3f0c91bef711a8bca2f7f0a82e99bb2df Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 25 Feb 2025 16:08:51 +1100 Subject: [PATCH] AP_GPS: UBLOX: fix memory leak when "F9" GNSS configuration is used pointer persists in the object and is re-used, but never freed. Not really a problem if you're only detecting once, could be a problem if you've got intermittent connectivity to your GPS... --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index 26d2a91f3b..382a15eaf6 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -129,6 +129,8 @@ AP_GPS_UBLOX::~AP_GPS_UBLOX() #if GPS_MOVING_BASELINE delete rtcm3_parser; #endif + + delete config_GNSS; } #if GPS_MOVING_BASELINE