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

# openpam\_free\_data(3)

generic cleanup function

## NAME

**openpam\_free\_data** – generic cleanup function

## LIBRARY

library “libpam”

## SYNOPSIS

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

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

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

*void*\

**openpam\_free\_data**(*pam\_handle\_t \*pamh*, *void \*data*, *int status*);

## DESCRIPTION

The **openpam\_free\_data** function is a cleanup function suitable for passing to [pam\_set\_data(3)](/pam_set_data/3.md). It simply releases the data by passing its *data* argument to [free(3)](/free/3.md).

## SEE ALSO

[free(3)](/free/3.md), [pam(3)](/pam/3.md), [pam\_set\_data(3)](/pam_set_data/3.md)

## STANDARDS

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

## AUTHORS

The **openpam\_free\_data** 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.
