]> git.proxmox.com Git - mirror_qemu.git/commit - tests/e1000e-test.c
tests: fix e1000e leaks
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 6 Feb 2017 08:56:15 +0000 (08:56 +0000)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 1 Mar 2017 07:51:28 +0000 (11:51 +0400)
commit448fe3c1349b540c66e048788dd98b9c80775c53
treee20b71581335ac73237e76dac7d06db1c92fb1d0
parent1bab33ab4ab4702f53012551cad333beb270f30d
tests: fix e1000e leaks

Spotted by ASAN.

This hunk adds an assertion. It checks that we're finding no more than
one e1000e device: each hit allocates, but there is only one g_free().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
tests/e1000e-test.c