diff options
author | John Thacker <johnthacker@gmail.com> | 2022-02-08 20:01:51 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2022-02-08 20:03:02 -0500 |
commit | 26dafbae392150195dafb2fe868cc55d919c3686 (patch) | |
tree | ecdb3cc5cfd66706187f3b9a234291868942e2f2 | |
parent | 782e7db8c0d40207d9ad671347e1e299f5c2e1da (diff) |
file: Fix memory leak in Find Packet
If we don't find the data in a packet, reset the wtap record so
that the block we just searched is freed before we lose our pointer
to it.
-rw-r--r-- | file.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3728,6 +3728,7 @@ find_packet(capture_file *cf, ws_match_function match_function, new_fd = fdata; break; } + wtap_rec_reset(&rec); } if (fdata == start_fd) { |