]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: jwt: fix possible memory leak in convert_ecdsa_sig() error path
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Apr 2026 09:26:00 +0000 (11:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 18 May 2026 16:50:30 +0000 (18:50 +0200)
commitd4a4be6c34a8b13f564f99a0aad8d4ef2cb6b055
tree5c0a5722ed65ee863ce4b730653efc8758806aed
parentbbc41785d9099815479808b2e49d8dccdb067815
BUG/MINOR: jwt: fix possible memory leak in convert_ecdsa_sig() error path

The allocated ec_R and ec_S were not released in case one of the two
would fail to be allocated/created, and would cause a memory leak. Let's
add the missing BN_free(). This may be backported to 2.4.
src/jwt.c