From f1a05ef594dc5ce29ce7ba1673afe37a2d0c6d61 Mon Sep 17 00:00:00 2001 From: ZwX1616 Date: Thu, 16 Apr 2020 17:31:59 -0700 Subject: [PATCH] fix RHD memory leak old-commit-hash: 6c5080fa9860dbdfc6b97febc85ad1b537e42df9 --- selfdrive/modeld/models/dmonitoring.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/modeld/models/dmonitoring.cc b/selfdrive/modeld/models/dmonitoring.cc index 4f1f345689..7e8d635101 100644 --- a/selfdrive/modeld/models/dmonitoring.cc +++ b/selfdrive/modeld/models/dmonitoring.cc @@ -71,6 +71,7 @@ DMonitoringResult dmonitoring_eval_frame(DMonitoringModelState* s, void* stream_ cropped_u_buf, cropped_width/2, cropped_v_buf, cropped_width/2, cropped_width, cropped_height); + delete[] premirror_cropped_buf; } uint8_t *resized_buf = new uint8_t[resized_width*resized_height*3/2];