pfm_terminate - Man Page
free resources used by library
#include <perfmon/pfmlib.h> int pfm_terminate(void);
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.
There is no return value to this function
Stephane Eranian <firstname.lastname@example.org>
September, 2009 Linux Programmer's Manual