---
name: "libressl-CONF_modules_free"
section: "3"
platform: "linux"
package: "libressl"
version: "4.4.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libressl-CONF_modules_free"
---

# libressl-CONF\_modules\_free(3)

OpenSSL configuration cleanup functions

## NAME

**CONF\_modules\_free**, **CONF\_modules\_finish**, **CONF\_modules\_unload** – OpenSSL configuration cleanup functions

## SYNOPSIS

Crypto Library (libcrypto, -lcrypto)

**#include \<openssl/conf.h\>**

*void*\

**CONF\_modules\_free**(*void*);

*void*\

**CONF\_modules\_finish**(*void*);

*void*\

**CONF\_modules\_unload**(*int all*);

## DESCRIPTION

**CONF\_modules\_free**() closes down and frees up all memory allocated by all configuration modules. Normally applications will only call this function at application exit to tidy up any configuration performed.

**CONF\_modules\_finish**() calls the configuration **finish** handler of each configuration module to free up any configuration that module may have performed.

**CONF\_modules\_unload**() finishes and unloads configuration modules. If *all* is set to 1, the builtin modules will be unloaded as well.

## SEE ALSO

CONF\_modules\_load\_file(3), OPENSSL\_config(3)

## HISTORY

**CONF\_modules\_free**(), **CONF\_modules\_finish**(), and **CONF\_modules\_unload**() first appeared in OpenSSL 0.9.7 and have been available since OpenBSD 3.2.
