summaryrefslogtreecommitdiffstats
path: root/pcp
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-04-08 11:04:07 +1000
committerNathan Scott <nathans@redhat.com>2021-06-09 17:09:29 +1000
commitda454997bf1f721f958c8f619155c21c8e033cfc (patch)
treea2ee8ca8d2c5a4e4178902bc4c3185627ae43976 /pcp
parent5abd7f21985af862b4026e3a43a86a0c2cef46ac (diff)
Remove dynamic allocation of PCP metric atomvalues expansion
This is no longer used and confuses Coverity scans, drop it.
Diffstat (limited to 'pcp')
-rw-r--r--pcp/Platform.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pcp/Platform.c b/pcp/Platform.c
index e4675d71..6519342b 100644
--- a/pcp/Platform.c
+++ b/pcp/Platform.c
@@ -246,13 +246,6 @@ pmAtomValue* Metric_values(Metric metric, pmAtomValue *atom, int count, int type
if (!vset || vset->numval <= 0)
return NULL;
- /* allocate space for atom if needed */
- if (!atom || !count) {
- if (!count)
- count = vset->numval;
- atom = xCalloc(count, sizeof(pmAtomValue));
- }
-
/* extract requested number of values as requested type */
const pmDesc* desc = &pcp->descs[metric];
for (int i = 0; i < vset->numval; i++) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy