dnp: plug a memory leak.

If we're throwing away the data, *throw away the data* - free it, as
we're not using it as the backing data for a tvbuff.
This commit is contained in:
Guy Harris 2021-05-23 13:55:48 -07:00 committed by Wireshark GitLab Utility
parent d9a93acc93
commit 618661b22e
1 changed files with 1 additions and 0 deletions

View File

@ -3460,6 +3460,7 @@ dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
else
{
/* CRC error - throw away the data. */
g_free(al_buffer);
next_tvb = NULL;
}
}