forked from Archive/PX4-Autopilot
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:
parent
1aeca4f64d
commit
36208255bd
|
@ -1232,7 +1232,7 @@ Mavlink::configure_stream_threadsafe(const char *stream_name, const float rate)
|
||||||
usleep(MAIN_LOOP_DELAY / 2);
|
usleep(MAIN_LOOP_DELAY / 2);
|
||||||
} while (_subscribe_to_stream != nullptr);
|
} while (_subscribe_to_stream != nullptr);
|
||||||
|
|
||||||
delete s;
|
delete[] s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue