From 42f153e4e498472c445bdf7b8637967e9278cbe4 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 19 Jun 2020 13:56:46 -0700 Subject: [PATCH] ubloxd free->delete, fixes #1742 old-commit-hash: 9e273eb2ec9830b4e2af82168e5f68da71c66761 --- selfdrive/locationd/ubloxd_main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/locationd/ubloxd_main.cc b/selfdrive/locationd/ubloxd_main.cc index d869c85196..8e6007a75c 100644 --- a/selfdrive/locationd/ubloxd_main.cc +++ b/selfdrive/locationd/ubloxd_main.cc @@ -104,7 +104,7 @@ int ubloxd_main(poll_ubloxraw_msg_func poll_func, send_gps_event_func send_func) } bytes_consumed += bytes_consumed_this_time; } - free(msg); + delete msg; } delete subscriber;