diff options
author | David Perry <boolean263@protonmail.com> | 2021-08-04 13:18:46 -0400 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2021-08-10 00:08:15 +0000 |
commit | 6e12643f198500245ee6eff999804e468481a7b3 (patch) | |
tree | 0d08844a58e4cf465b1d13ecf70a736a5e772105 /docbook | |
parent | 4aee4059745f6089e530344289e7ea24d5ec2db4 (diff) |
[#17478] free blocks in more places
Bug 17478 was caused by `wtap_rec.block` being allocated for each
packet, but not freed when it was done being used -- typically at the
end of a loop.
Rather than requiring each caller of `wtap_read()` to know to free a
member of `rec`, I added a new function `wtap_rec_reset()` for a
slightly cleaner API. Added calls to it everywhere that seemed to make
sense.
Fixes #17478
Diffstat (limited to 'docbook')
0 files changed, 0 insertions, 0 deletions