Closed douzzer closed 1 week ago
src/ssl_sess.c: in EvictSessionFromCache(), free session->ticketNonce.data if it was dynamically allocated. fixes memory leak via wolfSSL_Cleanup().
src/ssl_sess.c
EvictSessionFromCache()
session->ticketNonce.data
wolfSSL_Cleanup()
for history see 56d6087749 and 1106e5ff0e.
detected by wolfssl-multi-test.sh ... all-noasm-valgrind-unittest
wolfssl-multi-test.sh ... all-noasm-valgrind-unittest
tested with
LD_LIBRARY_PATH=./src/.libs saferun valgrind --tool=memcheck --leak-check=full --show-leak-kinds=all --show-reachable=yes --leak-resolution=high --track-fds=yes --track-origins=yes --fullpath-after= --error-exitcode=10 ./tests/.libs/unit.test
also tested with wolfssl-multi-test.sh ... super-quick-check
wolfssl-multi-test.sh ... super-quick-check
src/ssl_sess.c
: inEvictSessionFromCache()
, freesession->ticketNonce.data
if it was dynamically allocated. fixes memory leak viawolfSSL_Cleanup()
.for history see 56d6087749 and 1106e5ff0e.
detected by
wolfssl-multi-test.sh ... all-noasm-valgrind-unittest
tested with
also tested with
wolfssl-multi-test.sh ... super-quick-check