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.
This commit is contained in:
parent
d9a93acc93
commit
618661b22e
|
@ -3460,6 +3460,7 @@ dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void*
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* CRC error - throw away the data. */
|
/* CRC error - throw away the data. */
|
||||||
|
g_free(al_buffer);
|
||||||
next_tvb = NULL;
|
next_tvb = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue