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.


(cherry picked from commit 618661b22e)
This commit is contained in:
Guy Harris 2021-05-23 13:55:48 -07:00
parent 191e6744f9
commit f032d776e6
1 changed files with 1 additions and 0 deletions

View File

@ -3455,6 +3455,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;
}
}