diff --git a/crypto/conf/conf.c b/crypto/conf/conf.c index 85571f4991c..7e049bb303c 100644 --- a/crypto/conf/conf.c +++ b/crypto/conf/conf.c @@ -643,15 +643,7 @@ int CONF_modules_load_file(const char *filename, const char *appname, } char *CONF_get1_default_config_file(void) { - const char *temp = "No support for Config files in AWS-LC."; - size_t temp_len = strlen(temp) + 1; - - char *ret = (char *)OPENSSL_malloc(temp_len); - if(ret == NULL) { - return NULL; - } - OPENSSL_memcpy(ret, temp, temp_len); - return ret; + return OPENSSL_strdup("No support for Config files in AWS-LC."); } void CONF_modules_free(void) {}