BUG/MINOR: jwt: Missing pkey free during cleanup
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Fri, 4 Feb 2022 13:21:02 +0000 (14:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Feb 2022 13:40:53 +0000 (14:40 +0100)
commit0cb502720726205fd18f86b08efcfcad0f6ac86f
treebf5a478cbef618c81c9d25e2a81daab927fa91b9
parent3fe88ee0e5b7f0eca88f86bace50f7d1045f8b71
BUG/MINOR: jwt: Missing pkey free during cleanup

When emptying the jwt_cert_tree during deinit, the entries are freed but
not the EVP_PKEY reference they kept, leading in a memory leak.

Should be backported in 2.5.

(cherry picked from commit 2b5a6559460b41dd6db2740cc961b461cef12edc)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/jwt.c