Fix a memory leak reported in CIFuzz
[openssl.git] / crypto / conf / conf_def.c
index 7b67854c8b702ecb5310e86b4ed086b2824b70ec..1832cf535f88cd4b6d2cc08179b8794d1cb3c4ca 100644 (file)
@@ -474,6 +474,7 @@ static int def_load_bio(CONF *conf, BIO *in, long *line)
                 if (conf->flag_abspath
                         && !ossl_is_absolute_path(include_path)) {
                     ERR_raise(ERR_LIB_CONF, CONF_R_RELATIVE_PATH);
+                    OPENSSL_free(include_path);
                     goto err;
                 }