mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Tools: Replay: fix use-after-free in Replay error path
This commit is contained in:
parent
35a8a04787
commit
69f2d0d0c6
@ -83,7 +83,6 @@ void MsgHandler::parse_format_fields()
|
|||||||
|
|
||||||
while ((next_label = strtok(arg, ",")) != NULL) {
|
while ((next_label = strtok(arg, ",")) != NULL) {
|
||||||
if (label_offset > strlen(format)) {
|
if (label_offset > strlen(format)) {
|
||||||
free(labels);
|
|
||||||
printf("too few field times for labels %s (format=%s) (labels=%s)\n",
|
printf("too few field times for labels %s (format=%s) (labels=%s)\n",
|
||||||
f.name, format, labels);
|
f.name, format, labels);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user