]> git.proxmox.com Git - qemu.git/blobdiff - tests/test-qmp-output-visitor.c
hw/9pfs: Fix potential memory leak and avoid reuse of freed memory
[qemu.git] / tests / test-qmp-output-visitor.c
index 0942a41875c6811a2fd4e7c3373ddc858b3ec477..b2fa9a74f67ea368234fbc660ba26c4b060d2080 100644 (file)
@@ -295,7 +295,10 @@ static void test_visitor_out_struct_errors(TestOutputVisitorData *data,
 
 typedef struct TestStructList
 {
-    TestStruct *value;
+    union {
+        TestStruct *value;
+        uint64_t padding;
+    };
     struct TestStructList *next;
 } TestStructList;