> @@ -1592,8 +1585,8 @@ virDomainVirtioSerialAddrSetAddController(virDomainVirtioSerialAddrSetPtr addrs, > VIR_DEBUG("Adding virtio serial controller index %u with %d" > " ports to the address set", cont->idx, ports); > > - if (VIR_ALLOC(cnt) < 0) > - goto cleanup; > + cnt = g_new0(virDomainVirtioSerialController, > + 1); Make ^these a single line.