diff options
author | sgzmd <sigizmund@gmail.com> | 2024-06-25 15:53:32 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-06-27 19:50:49 +0200 |
commit | 9b9f98fcf2a32b052a532170d8995572c6e47f74 (patch) | |
tree | 17f845a6404538849a439aad7be7b712ff922829 | |
parent | ab2c276a45390823ac4f3a149b2465425cc31757 (diff) | |
download | openssl-9b9f98fcf2a32b052a532170d8995572c6e47f74.zip openssl-9b9f98fcf2a32b052a532170d8995572c6e47f74.tar.gz openssl-9b9f98fcf2a32b052a532170d8995572c6e47f74.tar.bz2 |
Free appname if it was set after initializing crypto.
Fixes #24729
CLA: trivial
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24730)
(cherry picked from commit fbd6609bb21b125c9454d07c484d166a33b4815b)
-rw-r--r-- | crypto/conf/conf_sap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/conf/conf_sap.c b/crypto/conf/conf_sap.c index 3019bcf..bfe3a5f 100644 --- a/crypto/conf/conf_sap.c +++ b/crypto/conf/conf_sap.c @@ -38,6 +38,8 @@ void OPENSSL_config(const char *appname) settings.appname = strdup(appname); settings.flags = DEFAULT_CONF_MFLAGS; OPENSSL_init_crypto(OPENSSL_INIT_LOAD_CONFIG, &settings); + + free(settings.appname); } #endif |