---
name: "__pmFreeProfile"
section: "3"
platform: "linux"
package: "pcp"
version: "7.2.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/__pmFreeProfile"
---

# \_\_pmFreeProfile(3)

free a PMAPI instance profile

## NAME

**\_\_pmFreeProfile** - free a PMAPI instance profile

## C SYNOPSIS

**#include "pmapi.h"**\
 **#include "libpcp.h"**

**void \_\_pmFreeProfile(pmProfile \****prof***);**

**cc ... -lpcp**

## CAVEAT

This documentation is intended for internal Performance Co-Pilot (PCP) developer use.

These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases, and they may not work, or may provide different semantics at some point in the future.

## DESCRIPTION

**\_\_pmFreeProfile** frees the storage for the PMAPI instance profile *prof*, assuming the storage was allocated using [**malloc**(3)](/malloc/3.md) according to the scheme used in **\_\_pmDecodeProfile**(3).

## SEE ALSO

[**malloc**(3)](/malloc/3.md), [**PMAPI**(3)](/PMAPI/3.md) and **\_\_pmDecodeProfile**(3).
