diff options
author | kn <kn@cvs.openbsd.org> | 2020-07-18 17:40:39 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2020-07-18 17:40:39 +0000 |
commit | 82780dfbe2024087f56b3e04da28b0454ff1dcd6 (patch) | |
tree | ba2094d1a52675f2fb8f724847a3e405bcf275b0 /usr.bin | |
parent | 5061f17a34323f4c33f32e3985ab0b370ba0a1c0 (diff) |
Add size to free(9) calls
pfkeyv2_send() allocates multiple buffers using the same variable `i' to
calculate their sizes, use dedicated size variables for each buffer to reuse
them with free(9).
For this, make pfkeyv2_policy() pass back the size of its freshly allocated
buffer.
Tested, feedback and OK tobhe
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions