]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Fix virmacmaptest when allocation fails
authorJohn Ferlan <jferlan@redhat.com>
Wed, 7 Dec 2016 13:07:54 +0000 (08:07 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 8 Dec 2016 19:58:31 +0000 (14:58 -0500)
commit80acf4b867c68701493f00e9b0429f5577913142
treee1e9ef91ba15d215afef3c477f3558e0580c3581
parent0658184944ac3d9467f183472cdac838771f808a
tests: Fix virmacmaptest when allocation fails

If the allocation fails in DO_TEST_FLUSH_PROLOGUE, then 'mgr == NULL',
but the code continues on - which won't be good. So modify the macro
to cause an immediate failure and jump to a cleanup label.

Found by Coverity as FORWARD_NULL event.
tests/virmacmaptest.c