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

# pmFreeHighResEventResult(3)

release storage allocated for unpacked event records

## NAME

**pmFreeHighResEventResult**, **pmFreeEventResult** - release storage allocated for unpacked event records

## C SYNOPSIS

**#include \<pcp/pmapi.h\>**

**void pmFreeHighResEventResult(pmResult \*\****hrset***);**\
 **void pmFreeEventResult(pmResult\_v2 \*\****rset***);**

**cc ... -lpcp**

## DESCRIPTION

When processing event records, if [**pmUnpackHighResEventRecords**(3)](/pmUnpackHighResEventRecords/3.md) is used to unpack event records from a metric within a *pmResult* structure with a value of type **PM\_TYPE\_HIGHRES\_EVENT** then the structure returned from [**pmUnpackHighResEventRecords**(3)](/pmUnpackHighResEventRecords/3.md) is a NULL pointer terminated array of pointers to *pmResult* structures, one for each event record.

**pmFreeHighResEventResult** is a convenience method that frees all of the *pmResult* structures and the array of pointers (*hrset*).

Similarly, **pmFreeEventResult** may be used to free the *pmResult\_v2* structures and array returned from the **pmUnpackEventRecords** routine when using **PM\_TYPE\_EVENT** metrics.

## SEE ALSO

[**PMAPI**(3)](/PMAPI/3.md) and [**pmUnpackEventRecords**(3)](/pmUnpackEventRecords/3.md).
