]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/x509/v3_lib.c: Free tmpext if X509V3_EXT_add() fails to avoid memory leak
authorJiashengJiang <jiasheng@purdue.edu>
Mon, 5 May 2025 17:46:53 +0000 (13:46 -0400)
committerTomas Mraz <tomas@openssl.org>
Mon, 19 May 2025 14:18:35 +0000 (16:18 +0200)
commit5f661e4e96bc3bfa52b4e0735f407cb41f162869
tree3e2da5531c296775c069cd223b9e585e7a555402
parentc54fd95918cad3f0744d2e05afc47aa363771a46
crypto/x509/v3_lib.c: Free tmpext if X509V3_EXT_add() fails to avoid memory leak

Add OPENSSL_free to free tmpext if X509V3_EXT_add() fails to avoid memory leak.

Fixes: 878dc8dd95 ("Join the x509 and x509v3 directories")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27566)
crypto/x509/v3_lib.c