diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2019-10-25 14:12:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 14:12:54 +0000 |
commit | 2119fdd11295d0d3bfc6ee855ca55bef3f771558 (patch) | |
tree | 63a8c19a6beb28d0249dac92a10c68f7ab63d4e3 /collectors/proc.plugin | |
parent | 265df2494708aa85293cc5c6dbf018d4d79ed9e4 (diff) |
coverity_350131: Fix sizeof on callocz (#7187)
The original plugin was allocating memory with wrong size, this commit fixes this
Diffstat (limited to 'collectors/proc.plugin')
-rw-r--r-- | collectors/proc.plugin/proc_pagetypeinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/proc.plugin/proc_pagetypeinfo.c b/collectors/proc.plugin/proc_pagetypeinfo.c index 2fdadffee0..6b6c6c4ed6 100644 --- a/collectors/proc.plugin/proc_pagetypeinfo.c +++ b/collectors/proc.plugin/proc_pagetypeinfo.c @@ -222,7 +222,7 @@ int do_proc_pagetypeinfo(int update_every, usec_t dt) { // Per-Numa Node & Zone & Type (full detail). Only if sum(line) > 0 - st_nodezonetype = callocz(pagelines_cnt, sizeof(RRDSET)); + st_nodezonetype = callocz(pagelines_cnt, sizeof(RRDSET *)); for (p = 0; p < pagelines_cnt; p++) { pgl = &pagelines[p]; |