[PATCH v4 3/5] lxc: Replacing default strings definitions by g_autofree statement

Daniel P. Berrangé berrange at redhat.com
Tue Feb 25 12:30:35 UTC 2020


On Mon, Feb 24, 2020 at 11:24:27AM -0300, Julio Faracco wrote:
> 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.
> 
> Signed-off-by: Julio Faracco <jcfaracco at gmail.com>
> ---
>  src/lxc/lxc_cgroup.c     | 15 +++----
>  src/lxc/lxc_controller.c | 96 ++++++++++++++--------------------------
>  src/lxc/lxc_fuse.c       | 23 +++-------
>  3 files changed, 44 insertions(+), 90 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


I'll push this one since its independant of the rest of the series.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list