Address Sanitizer found delete vs delete[] issue

mavlink_main.cpp used new char[n] and delete vs delete[].

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-11-23 23:23:02 -08:00
parent 1aeca4f64d
commit 36208255bd
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}