]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Fix memory leak in mymain
authorJohn Ferlan <jferlan@redhat.com>
Wed, 7 Aug 2019 13:57:46 +0000 (09:57 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 7 Aug 2019 15:44:17 +0000 (11:44 -0400)
commit59a3b79506cc6921c24b8e0042c95178fec2c368
tree8346316f4c7c0be1f09479675a89404708b76215
parent4e02d52ab9839ca3dc918362563ea407293dad58
tests: Fix memory leak in mymain

Commit d2899a648 added a new exit path, but didn't free @fakerootdir.
Let's just use VIR_AUTOFREE instead to make life easier.

Found by Coverity

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/virhostdevtest.c