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

# pam\_misc\_drop\_env(3)

liberating a locally saved environment

## NAME

pam\_misc\_drop\_env - liberating a locally saved environment

## SYNOPSIS

```
#include <security/pam_misc.h>
```

**int pam\_misc\_drop\_env(char \*\****env***);**

## DESCRIPTION

This function is defined to complement the [**pam\_getenvlist**(3)](/pam_getenvlist/3.md) function. It liberates the memory associated with *env*, *overwriting* with *0* all memory before **free()**ing it.

## SEE ALSO

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

## STANDARDS

The **pam\_misc\_drop\_env** function is part of the **libpam\_misc** Library and not defined in any standard.
