]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Replacing default strings definitions by g_autofree statement
authorJulio Faracco <jcfaracco@gmail.com>
Mon, 24 Feb 2020 14:24:27 +0000 (11:24 -0300)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 Feb 2020 12:31:41 +0000 (12:31 +0000)
commit5b82f7f3af6f5b966da11d1face536139fdce012
treebcf5628bd78330968d716a922c43b8c933c2f4e9
parenta97e17c4e23c88b58c20545196fdd56ced4be877
lxc: Replacing default strings definitions by g_autofree statement

There are a lots of strings being handled inside some LXC functions.
They can be moved to g_autofree to avoid declaring a return value to get
proper code cleanups. This commit is changing functions from
lxc_{controller,cgroup,fuse} only.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
src/lxc/lxc_cgroup.c
src/lxc/lxc_controller.c
src/lxc/lxc_fuse.c