diff mbox

[v3] tpm: add CRB device

Message ID CAMxuvazdE3VnxWaF0Z-T5BxExnC4uOnqwU9LiYvMsBSi6Tn85g@mail.gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Marc-André Lureau Jan. 26, 2018, 12:09 p.m. UTC
Hi,

Stash this to fix test leaks:
diff mbox

Patch

diff --git a/tests/tpm-crb-test.c b/tests/tpm-crb-test.c
index de78a28844..8bf1507e00 100644
--- a/tests/tpm-crb-test.c
+++ b/tests/tpm-crb-test.c
@@ -81,6 +81,7 @@  static void *emu_tpm_thread(void *data)

     g_free(s->tpm_msg);
     s->tpm_msg = NULL;
+    object_unref(OBJECT(s->tpm_ioc));
     return NULL;
 }

@@ -180,6 +181,8 @@  static void *emu_ctrl_thread(void *data)
         }
     }

+    object_unref(OBJECT(ioc));
+    object_unref(OBJECT(lioc));
     return NULL;
 }