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

# auparse\_destroy(3)

release instance of parser

## NAME

auparse\_destroy - release instance of parser

## SYNOPSIS

**#include \<auparse.h\>**

**void auparse\_destroy(auparse\_state\_t \****au);"*

**void auparse\_destroy\_ext(auparse\_state\_t \*au, auparse\_destroy\_what\_t what);**

## DESCRIPTION

**auparse\_destroy** frees all data structures and closes file descriptors.

**auparse\_destroy\_ext** frees data structures based on what. What can be AUPARSE\_DESTROY\_ALL to release everything or AUPARSE\_DESTROY\_COMMON to release everything but the uid and gid lookup cache.

## RETURN VALUE

None.

## SEE ALSO

[**auparse\_init**(3)](/auparse_init/3.md), [**auparse\_reset**(3)](/auparse_reset/3.md).

## AUTHOR

Steve Grubb
