]> git.ipfire.org Git - thirdparty/libvirt.git/commit
testSysinfo: Use more g_auto*()
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 8 Jun 2020 09:56:45 +0000 (11:56 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Jun 2020 12:00:38 +0000 (14:00 +0200)
commitfc4364a59aaf2c1cae2a42b7b0ca121761c0d8a2
tree9316f1ae4c6bdd18ce8a7d96d67e8f1cce1736a7
parentf603b99ad9becae453c2e9056a8bf1e082c7f68b
testSysinfo: Use more g_auto*()

Some variables defined in the function can be freed
automatically when going out of scope. This renders @result
variable and cleanup label needless.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
tests/sysinfotest.c