Skip to content

Commit

Permalink
AP_GPS: UBLOX: fix memory leak when "F9" GNSS configuration is used
Browse files Browse the repository at this point in the history
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...
  • Loading branch information
peterbarker authored and tridge committed Feb 26, 2025
1 parent 12c4617 commit 353744e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_GPS/AP_GPS_UBLOX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 353744e

Please sign in to comment.