]> xenbits.xensource.com Git - people/pauldu/qemu.git/commitdiff
Fix be write
authorDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Jan 2023 15:20:20 +0000 (16:20 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Mon, 23 Jan 2023 15:20:20 +0000 (16:20 +0100)
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/i386/kvm/xen_xenstore.c

index 573623e573cd5c9c3654885f4f92e3df638e5f06..706062dbacc7a2aad959514ec61eaff96b87b09e 100644 (file)
@@ -1279,7 +1279,7 @@ static bool xs_be_write(struct qemu_xs_handle *h, xs_transaction_t t,
 
     g_byte_array_append(gdata, data, len);
     err = xs_impl_write(h->impl, DOMID_QEMU, t, path, gdata);
-    g_byte_array_free(gdata, true);
+    g_byte_array_unref(gdata);
     if (err) {
         errno = err;
         return false;