diff --git a/src/modules/mavlink/mavlink_main.cpp b/src/modules/mavlink/mavlink_main.cpp index 1b04eea1a0..e04f64e293 100644 --- a/src/modules/mavlink/mavlink_main.cpp +++ b/src/modules/mavlink/mavlink_main.cpp @@ -1232,7 +1232,7 @@ Mavlink::configure_stream_threadsafe(const char *stream_name, const float rate) usleep(MAIN_LOOP_DELAY / 2); } while (_subscribe_to_stream != nullptr); - delete s; + delete[] s; } }