From 36699c12d37c5bef000cbe3d9b4b2b89bee4e17e Mon Sep 17 00:00:00 2001 From: zhouzilong Date: Mon, 25 Apr 2022 14:40:24 +0800 Subject: [PATCH] Clear unused variables in X509_print_ex() CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/18167) --- crypto/x509/t_x509.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crypto/x509/t_x509.c b/crypto/x509/t_x509.c index 3e022ccbcb2..73f6489cac6 100644 --- a/crypto/x509/t_x509.c +++ b/crypto/x509/t_x509.c @@ -55,7 +55,7 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, { long l; int ret = 0, i; - char *m = NULL, mlch = ' '; + char mlch = ' '; int nmindent = 0, printok = 0; EVP_PKEY *pkey = NULL; const char *neg; @@ -222,7 +222,6 @@ int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, } ret = 1; err: - OPENSSL_free(m); return ret; } -- 2.47.2