mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 02:33:35 +08: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