Browse Source

Replay: fix double-free in MsgHandler

master
Peter Barker 10 years ago committed by Andrew Tridgell
parent
commit
dbbc5ed816
  1. 5
      Tools/Replay/MsgHandler.cpp

5
Tools/Replay/MsgHandler.cpp

@ -98,9 +98,8 @@ void MsgHandler::parse_format_fields() @@ -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…
Cancel
Save