diff options
author | Guy Harris <gharris@sonic.net> | 2021-05-23 13:55:48 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-05-23 22:08:25 +0000 |
commit | f032d776e6d82a997712a11c2cdb29ec20b64782 (patch) | |
tree | 76b92521dbfc81ad4b4f6dccc4ddafe7b0fa49d6 | |
parent | 191e6744f9430f8e3f6c8e3434cdc98457dca01a (diff) |
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 618661b22e34a59b21117db723d8ff91e064d4ba)
-rw-r--r-- | epan/dissectors/packet-dnp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dnp.c b/epan/dissectors/packet-dnp.c index 3f78aaee03..c07ae24180 100644 --- a/epan/dissectors/packet-dnp.c +++ b/epan/dissectors/packet-dnp.c @@ -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; } } |