mirror of https://github.com/ArduPilot/ardupilot
Replay: fix double-free in MsgHandler
This commit is contained in:
parent
4e0c2c5a9b
commit
dbbc5ed816
|
@ -98,9 +98,8 @@ void MsgHandler::parse_format_fields()
|
|||
}
|
||||
|
||||
if (label_offset != strlen(f.format)) {
|
||||
free(labels);
|
||||
printf("too few labels for format (format=%s) (labels=%s)\n",
|
||||
f.format, f.labels);
|
||||
printf("too few labels for format (format=%s) (labels=%s)\n",
|
||||
f.format, f.labels);
|
||||
}
|
||||
|
||||
free(labels);
|
||||
|
|
Loading…
Reference in New Issue