Skip to content
Snippets Groups Projects
Commit fb9393a1 authored by Mike Neilsen's avatar Mike Neilsen Committed by Neal Cardwell
Browse files

free tcp_options buffer after use


fmemopen(3) states that buffers opened via open_memstream should be
freed after closing the associated stream.

Signed-off-by: default avatarMike Neilsen <mneilsen@acm.org>
parent ea8f2fec
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,7 @@ static int tcp_packet_to_string(FILE *s, struct packet *packet, ...@@ -100,6 +100,7 @@ static int tcp_packet_to_string(FILE *s, struct packet *packet,
result = STATUS_ERR; result = STATUS_ERR;
else else
fprintf(s, "<%s>", tcp_options); fprintf(s, "<%s>", tcp_options);
free(tcp_options);
} }
if (format == DUMP_VERBOSE) if (format == DUMP_VERBOSE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment