mirror of https://github.com/ArduPilot/ardupilot
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) {
|
||||
if (label_offset > strlen(format)) {
|
||||
free(labels);
|
||||
printf("too few field times for labels %s (format=%s) (labels=%s)\n",
|
||||
f.name, format, labels);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue