'\"macro stdmacro .\" .\" Copyright (c) 2014 Red Hat. .\" Copyright (c) 2010 Ken McDonell. All Rights Reserved. .\" .\" This program is free software; you can redistribute it and/or modify it .\" under the terms of the GNU General Public License as published by the .\" Free Software Foundation; either version 2 of the License, or (at your .\" option) any later version. .\" .\" This program is distributed in the hope that it will be useful, but .\" WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY .\" or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License .\" for more details. .\" .\" .TH PMFREEEVENTRESULT 3 "PCP" "Performance Co-Pilot" .SH NAME \f3pmFreeHighResEventResult\f1, \f3pmFreeEventResult\f1 \- release storage allocated for unpacked event records .SH "C SYNOPSIS" .ft 3 .ad l .hy 0 #include .sp void pmFreeHighResEventResult(pmResult **\fIhrset\fP); .br void pmFreeEventResult(pmResult_v2 **\fIrset\fP); .sp cc ... \-lpcp .hy .ad .ft 1 .SH DESCRIPTION .de CR .ie t \f(CR\\$1\f1\\$2 .el \fI\\$1\f1\\$2 .. When processing event records, if .BR pmUnpackHighResEventRecords (3) is used to unpack event records from a metric within a .I pmResult structure with a value of type .B PM_TYPE_HIGHRES_EVENT then the structure returned from .BR pmUnpackHighResEventRecords (3) is a NULL pointer terminated array of pointers to .I pmResult structures, one for each event record. .PP .B pmFreeHighResEventResult is a convenience method that frees all of the .I pmResult structures and the array of pointers (\c .IR hrset ). .PP Similarly, .B pmFreeEventResult may be used to free the .I pmResult_v2 structures and array returned from the .BR pmUnpackEventRecords routine when using .BR PM_TYPE_EVENT metrics. .SH SEE ALSO .BR PMAPI (3) and .BR pmUnpackEventRecords (3).