]> Git Repo - qemu.git/blobdiff - tests/q35-test.c
Merge remote-tracking branch 'remotes/armbru/tags/pull-block-2017-03-28' into staging
[qemu.git] / tests / q35-test.c
index 71538fc17c3d206da84e5d1cd8a88045f7cdd5b3..cc58f3ecf4916859c832b587c4424c3b54b8a911 100644 (file)
@@ -42,7 +42,7 @@ static void test_smram_lock(void)
     QPCIDevice *pcidev;
     QDict *response;
 
-    pcibus = qpci_init_pc();
+    pcibus = qpci_init_pc(NULL);
     g_assert(pcibus != NULL);
 
     pcidev = qpci_device_find(pcibus, 0);
@@ -71,6 +71,9 @@ static void test_smram_lock(void)
     g_assert(smram_test_bit(pcidev, MCH_HOST_BRIDGE_SMRAM_D_OPEN) == false);
     smram_set_bit(pcidev, MCH_HOST_BRIDGE_SMRAM_D_OPEN, true);
     g_assert(smram_test_bit(pcidev, MCH_HOST_BRIDGE_SMRAM_D_OPEN) == true);
+
+    g_free(pcidev);
+    qpci_free_pc(pcibus);
 }
 
 int main(int argc, char **argv)
This page took 0.023926 seconds and 4 git commands to generate.