summaryrefslogtreecommitdiff
path: root/rust/zerocopy/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorWang Yan <wangyan01@kylinos.cn>2026-07-02 10:59:49 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-07-09 10:32:58 +0200
commitf4ef35efbb49527293309f668ea73ec5de9b8e7a (patch)
tree8de65ddd4d680d2c3e3d9ff97fe01e22d86dd696 /rust/zerocopy/git@git.tavy.me:linux-stable.git
parent6d27e29a90bc6a717b97c6ddcd866db7bd8e4adc (diff)
selftests/net: fix EVP_MD_CTX leak in tcp_mmap
In tcp_mmap.c, both child_thread() and main() allocate an EVP_MD_CTX via EVP_MD_CTX_new() when integrity checking is enabled, but neither function releases the context. child_thread() misses the free in its common cleanup block, and main() returns without freeing the context. This results in a SHA256 context leak on every run that uses the ‑i (integrity) option. Add the missing EVP_MD_CTX_free() calls to the appropriate cleanup paths to fix the leak. Fixes: 5c5945dc695c ("selftests/net: Add SHA256 computation over data sent in tcp_mmap") Signed-off-by: Wang Yan <wangyan01@kylinos.cn> Link: https://patch.msgid.link/20260702025949.442523-1-wangyan01@kylinos.cn Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/zerocopy/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions