]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/cgroups/cgfs.c
Properly free memory of sorted cgroup settings
authorKien Truong <duckientruong@gmail.com>
Mon, 6 Apr 2015 16:20:43 +0000 (17:20 +0100)
committerKien Truong <duckientruong@gmail.com>
Mon, 4 May 2015 23:22:00 +0000 (00:22 +0100)
commit365d180a391f75002b091b2ff8de7b21bc3aa5e4
treec60bc083eb492c1c9a1bfab1ee2846fd5b3ae273
parentfac7c663865a706b521dcdb3182c92e93bf0c721
Properly free memory of sorted cgroup settings

We need to use lxc_list_for_each_safe, otherwise de-allocation
will fail with a list size bigger than 2. The pointer to the head
of the list also need freeing after we've freed all other elements
of the list.

Signed-off-by: Kien Truong <duckientruong@gmail.com>
src/lxc/cgfs.c
src/lxc/cgmanager.c