diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc index c0e5114c0281e3..4e227857f01583 100644 --- a/selfdrive/boardd/boardd.cc +++ b/selfdrive/boardd/boardd.cc @@ -632,6 +632,9 @@ void *can_send_thread(void *crap) { while (!do_exit) { can_send(subscriber); } + + delete subscriber; + delete context; return NULL; } @@ -662,6 +665,9 @@ void *can_recv_thread(void *crap) { next_frame_time += dt; } + + delete publisher; + delete c; return NULL; } @@ -677,6 +683,9 @@ void *can_health_thread(void *crap) { can_health(publisher); usleep(500*1000); } + + delete publisher; + delete c; return NULL; } @@ -911,6 +920,8 @@ void *pigeon_thread(void *crap) { cnt++; } + delete publisher; + delete context; return NULL; } diff --git a/selfdrive/clocksd/clocksd.cc b/selfdrive/clocksd/clocksd.cc index 0dba6259e24100..d289387a8b4b34 100644 --- a/selfdrive/clocksd/clocksd.cc +++ b/selfdrive/clocksd/clocksd.cc @@ -67,6 +67,6 @@ int main() { close(timerfd); delete clock_publisher; - + delete context; return 0; } \ No newline at end of file diff --git a/selfdrive/loggerd/loggerd.cc b/selfdrive/loggerd/loggerd.cc index 382cdc69bb4e7f..ed5a3410032468 100644 --- a/selfdrive/loggerd/loggerd.cc +++ b/selfdrive/loggerd/loggerd.cc @@ -731,7 +731,8 @@ int main(int argc, char** argv) { for (auto s : socks){ delete s; } - + + delete poller; delete s.ctx; return 0; } diff --git a/selfdrive/modeld/dmonitoringmodeld.cc b/selfdrive/modeld/dmonitoringmodeld.cc index 7acbffa651d507..0bed9cc156ff54 100644 --- a/selfdrive/modeld/dmonitoringmodeld.cc +++ b/selfdrive/modeld/dmonitoringmodeld.cc @@ -94,7 +94,7 @@ int main(int argc, char **argv) { visionstream_destroy(&stream); delete dmonitoring_sock; - delete dmonstate_sock; + delete msg_context; dmonitoring_free(&dmonitoringmodel); return 0; diff --git a/selfdrive/modeld/modeld.cc b/selfdrive/modeld/modeld.cc index 1f5da4ac6bbb2f..0bc2ecbcdb37d3 100644 --- a/selfdrive/modeld/modeld.cc +++ b/selfdrive/modeld/modeld.cc @@ -85,7 +85,10 @@ void* live_thread(void *arg) { } } - + + delete live_calibration_sock; + delete poller; + delete c; return NULL; } @@ -236,7 +239,10 @@ int main(int argc, char **argv) { visionstream_destroy(&stream); delete model_sock; - + delete posenet_sock; + delete pathplan_sock; + delete msg_context; + model_free(&model); LOG("joining live_thread");