diff mbox

[v4,06/13] test-char: unref chardev-udp after test

Message ID 1498495550-72357-7-git-send-email-anton.nefedov@virtuozzo.com (mailing list archive)
State New, archived
Headers show

Commit Message

Anton Nefedov June 26, 2017, 4:45 p.m. UTC
this is only not a problem if the test is last in a suite,
otherwise it makes the following main_loop() calls to fail

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 tests/test-char.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/tests/test-char.c b/tests/test-char.c
index 1f6b9bc..90b1f50 100644
--- a/tests/test-char.c
+++ b/tests/test-char.c
@@ -452,6 +452,8 @@  static void char_udp_test(void)
 
     close(sock);
     g_free(tmp);
+    qemu_chr_fe_deinit(&be);
+    object_unparent(OBJECT(chr));
 }
 
 #ifdef HAVE_CHARDEV_SERIAL