]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
tools/cgxget: de-allocate cg_convert_list[] in convert_cgroup()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Thu, 4 Aug 2022 18:56:00 +0000 (12:56 -0600)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 4 Aug 2022 18:56:09 +0000 (12:56 -0600)
commit6ee1e9c77239f053822c67f60b4d102fbe9937af
tree148bb4f001293a2e67375709be53feb65e450961
parente34ae57b9bcb736489142acf56484dd647691f11
tools/cgxget: de-allocate cg_convert_list[] in convert_cgroup()

The commit 66799b867c7 (tools/cgxget: fix the resource leak in
convert_cgroup()), is a partial fix. It de-allocated the array members
of the dynamically allocated cg_converted_list[], but fails to free()
the cg_converted_list.  Fix the resource leak by de-allocating it.

Fixes: 66799b867c7 (tools/cgxget: fix the resource leak in convert_group)
Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/tools/cgxget.c