virt plugin: Replace virTypedParamsFree() with virTypedParamsClear() and sfree().
authorFlorian Forster <octo@collectd.org>
Mon, 15 May 2017 06:51:56 +0000 (08:51 +0200)
committerFlorian Forster <octo@collectd.org>
Mon, 15 May 2017 06:51:59 +0000 (08:51 +0200)
commit693c9b8cb27746c45f7039e232dcb8d22f7e4ce4
treec79511667793c4862b876e405aa79218d138c435
parent57b9e83320b35d4dbd1312db5fbf33ddf8ecd989
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.
src/virt.c