From 36208255bdc34d969d7d04463ae668681a1e7031 Mon Sep 17 00:00:00 2001 From: Mark Charlebois Date: Mon, 23 Nov 2015 23:23:02 -0800 Subject: [PATCH] Address Sanitizer found delete vs delete[] issue mavlink_main.cpp used new char[n] and delete vs delete[]. Signed-off-by: Mark Charlebois --- src/modules/mavlink/mavlink_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }