From ce4528c39219c203bc518d6ebd0d1d331b830d19 Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Tue, 21 Apr 2020 00:23:23 +0800 Subject: [PATCH] dmonitoringmodeld: fix memory leak (#1403) --- selfdrive/modeld/dmonitoringmodeld.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/modeld/dmonitoringmodeld.cc b/selfdrive/modeld/dmonitoringmodeld.cc index 0bed9cc156ff54..ba69e5f539b6c5 100644 --- a/selfdrive/modeld/dmonitoringmodeld.cc +++ b/selfdrive/modeld/dmonitoringmodeld.cc @@ -70,6 +70,7 @@ int main(int argc, char **argv) { dmonitoringmodel.is_rhd = event.getDMonitoringState().getIsRHD(); dmonitoringmodel.is_rhd_checked = event.getDMonitoringState().getRhdChecked(); + delete msg; } chk_counter = 0; }