author | Florian Forster <octo@collectd.org> | |
Mon, 15 May 2017 06:51:56 +0000 (08:51 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 15 May 2017 06:51:59 +0000 (08:51 +0200) | ||
commit | 693c9b8cb27746c45f7039e232dcb8d22f7e4ce4 | |
tree | c79511667793c4862b876e405aa79218d138c435 | tree | snapshot |
parent | 57b9e83320b35d4dbd1312db5fbf33ddf8ecd989 | commit | diff |
virt plugin: Replace virTypedParamsFree() with virTypedParamsClear() and sfree().
The parameters are allocated with calloc(), freeing them with a library
function is unintuitive at best. Also, the library functions appears to
be missing the appropriate function attribute to tell clang / GCC that
it will free the pointer, resulting in a false-positive scan-build
report.
The parameters are allocated with calloc(), freeing them with a library
function is unintuitive at best. Also, the library functions appears to
be missing the appropriate function attribute to tell clang / GCC that
it will free the pointer, resulting in a false-positive scan-build
report.
src/virt.c | diff | blob | history |