]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsystemdtest: do not leak socket path
authorJán Tomko <jtomko@redhat.com>
Fri, 21 Feb 2020 23:57:33 +0000 (00:57 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 9 Mar 2020 14:46:43 +0000 (15:46 +0100)
commit7b6308b725f2a6b5b4a2d3b30f4577096b45a115
tree1a5f0f29607268c5b37225e1a17421f65b6a3170
parent9aa2426795f0cda8976400325a80d59180baa2b3
virsystemdtest: do not leak socket path

Use an autofree'd helper variable to store the socket path
and free it after the function finishes.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: 5b8569dd6e284b9159c701e8bffafb196983fc4a
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virsystemdtest.c