]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vsh: Use g_auto(GStrv) to free string list returned by completer callback
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jan 2021 16:12:50 +0000 (17:12 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2021 10:51:59 +0000 (11:51 +0100)
commit268f16293c480919b34e53d102ae0751385e2c31
treebf8d974be4c240d073a75317decbff4f8e8597a9
parent58aeebe0965e2653ecd64af2c809a48eef8fed21
vsh: Use g_auto(GStrv) to free string list returned by completer callback

This saves us explicit call of g_strfreev() in error path.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
tools/vsh.c