[PATCH] tests: qemublocktest: fix crashing with SIGBUS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit bcbb026993 converted qemublocktest to use
g_autoptr for virQEMUCaps. To prevent it from crashing,
don't explicitly call virObjectUnref() on this object.

Signed-off-by: Roman Bogorodskiy <bogorodskiy@xxxxxxxxx>
---
 tests/qemublocktest.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
index fb5319d7bd..0685b703a1 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -1394,7 +1394,6 @@ mymain(void)
  cleanup:
     qemuTestDriverFree(&driver);
     VIR_FREE(capslatest_x86_64);
-    virObjectUnref(caps_x86_64);
 
     return ret == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
 }
-- 
2.27.0




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux