forked from osmocom/wireshark
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:
parent
191e6744f9
commit
f032d776e6
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue