From 5ddb649ed1a6d1eb23dd731ec74710e7f1609b5a Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Tue, 22 Aug 2023 09:24:21 -0700 Subject: [PATCH] Update libraries/AP_Networking/AP_Networking.cpp Co-authored-by: Peter Barker --- libraries/AP_Networking/AP_Networking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Networking/AP_Networking.cpp b/libraries/AP_Networking/AP_Networking.cpp index d29fa03b17085..fa1b422008f5c 100644 --- a/libraries/AP_Networking/AP_Networking.cpp +++ b/libraries/AP_Networking/AP_Networking.cpp @@ -107,7 +107,7 @@ void AP_Networking::init() if (!backend->init()) { GCS_SEND_TEXT(MAV_SEVERITY_INFO, "NET: backend init failed"); - delete backend; + // the backend init function creates a thread which references the backend pointer; that thread may be running so don't remove the backend allocation. backend = nullptr; return; }