---
name: "pmfreeeventresult"
section: "3"
platform: "linux"
package: "libpcp3-dev"
version: "4.3.2+really4.3.1-0.1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/pmFreeEventResult"
---

# pmfreeeventresult(3)

release storage allocated for unpacked event records

Part of [pmFreeEventResult(3)](/pmFreeEventResult/3.md).

## NAME

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

## C SYNOPSIS

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

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

**cc ... -lpcp**

## DESCRIPTION

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

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

Similarly, **pmFreeHighResEventResult** may be used to free the *pmHighResResult* structures and array returned from the **pmUnpackHighResEventRecords** routine when using **PM\_TYPE\_HIGHRES\_EVENT** metrics.

## SEE ALSO

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