add_provider_groups: Clean up algorithm pointer on failure

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18494)
This commit is contained in:
Tomas Mraz 2022-06-07 14:17:32 +02:00
parent f91568eb50
commit a7863f9949

View File

@ -369,7 +369,7 @@ static int add_provider_groups(const OSSL_PARAM params[], void *data)
OPENSSL_free(ginf->tlsname);
OPENSSL_free(ginf->realname);
OPENSSL_free(ginf->algorithm);
ginf->tlsname = ginf->realname = NULL;
ginf->algorithm = ginf->tlsname = ginf->realname = NULL;
}
return ret;
}