LIBPFM(3) Linux Programmer's Manual LIBPFM(3)

# [NAME](#NAME)

pfm\_terminate - free resources used by library

# [SYNOPSIS](#SYNOPSIS)

```
#include <perfmon/pfmlib.h>

int pfm_terminate(void);

```

# [DESCRIPTION](#DESCRIPTION)

This is the last function that a program **must** call to free all the resources allocated by the library, e.g., memory. The function is not reentrant, caller must ensure only one thread at a time is executing it.

# [RETURN](#RETURN)

There is no return value to this function

# [AUTHOR](#AUTHOR)

Stephane Eranian &lt;eranian@gmail.com&gt;

September, 2009

---

Document: pfm_terminate(3) from libpfm 4.14.1-r0 (Chainguard OS)
Source: https://git.code.sf.net/p/perfmon2/libpfm4
