---
name: "openpam_free_envlist"
section: "3"
platform: "macos"
package: "OpenPAM"
version: "35"
release: "macOS 26.5"
platforms: ["freebsd", "macos"]
url: "https://new.carta.tech/openpam_free_envlist"
---

# openpam\_free\_envlist(3)

free an environment list

## NAME

**openpam\_free\_envlist** – free an environment list

## LIBRARY

library “libpam”

## SYNOPSIS

**#include \<sys/types.h\>**

**#include \<security/pam\_appl.h\>**

**#include \<security/openpam.h\>**

*void*\

**openpam\_free\_envlist**(*char \*\*envlist*);

## DESCRIPTION

The **openpam\_free\_envlist** function is a convenience function which frees all the environment variables in an environment list, and the list itself. It is suitable for freeing the return value from [pam\_getenvlist(3)](/pam_getenvlist/3.md).

## SEE ALSO

[pam(3)](/pam/3.md), [pam\_getenvlist(3)](/pam_getenvlist/3.md)

## STANDARDS

The **openpam\_free\_envlist** function is an OpenPAM extension.

## AUTHORS

The **openpam\_free\_envlist** function and this manual page were developed for the FreeBSD Project by ThinkSec AS and Network Associates Laboratories, the Security Research Division of Network Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 (“CBOSS”), as part of the DARPA CHATS research program.
