mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user