Replay: fix double-free in MsgHandler

This commit is contained in:
Peter Barker 2015-07-09 21:19:31 +10:00 committed by Andrew Tridgell
parent 4e0c2c5a9b
commit dbbc5ed816
1 changed files with 2 additions and 3 deletions

View File

@ -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);