diff options
author | Nathan Scott <nathans@redhat.com> | 2021-09-03 12:11:31 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2021-09-03 09:47:01 +0200 |
commit | c0c2bb98a23b649c55e5d8a55395073fdaa8d6fa (patch) | |
tree | 5d568468338201447d1396843e761d33c6729b37 /pcp/Platform.c | |
parent | 9b30870eeca0e2fd29602451205834d753ed5905 (diff) |
Add completion handling for dynamic meters and columns
Be sure to free dynamic memory allocated for meters and
columns strings, no-op on platforms other than pcp.
Closes #774
Diffstat (limited to 'pcp/Platform.c')
-rw-r--r-- | pcp/Platform.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcp/Platform.c b/pcp/Platform.c index c2af2e4a..29055b99 100644 --- a/pcp/Platform.c +++ b/pcp/Platform.c @@ -363,6 +363,14 @@ void Platform_init(void) { Platform_getMaxPid(); } +void Platform_dynamicColumnsDone(Hashtable* columns) { + PCPDynamicColumns_done(columns); +} + +void Platform_dynamicMetersDone(Hashtable* meters) { + PCPDynamicMeters_done(meters); +} + void Platform_done(void) { pmDestroyContext(pcp->context); if (pcp->result) |