]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix a memory leak in virCgroupGetPercpuStats
authorJán Tomko <jtomko@redhat.com>
Mon, 26 Jan 2015 09:20:22 +0000 (10:20 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 26 Jan 2015 15:13:06 +0000 (16:13 +0100)
commitb54f48812d2a495674476533b45c5bcb6b2dad91
tree7e726c0c954acebba358983c7ab4e50bb106aa87
parent495accb047fe85dd17f181c2a19b34fd84ed89f5
Fix a memory leak in virCgroupGetPercpuStats

Coverity reports that my commit af1c98e introduced
two memory leaks:
the cpumap if ncpus == 0 in virCgroupGetPercpuStats
and the params array in the test of the function.
src/util/vircgroup.c
tests/vircgrouptest.c