SHA256
1
0
forked from pool/libvirt
libvirt/xen-list-defined.patch

21 lines
482 B
Diff

Index: libvirt-0.7.4/src/xen/xend_internal.c
===================================================================
--- libvirt-0.7.4.orig/src/xen/xend_internal.c
+++ libvirt-0.7.4/src/xen/xend_internal.c
@@ -4693,13 +4693,14 @@ xenDaemonListDefinedDomains(virConnectPt
}
if (ret >= maxnames)
- break;
+ goto out;
}
error:
for (i = 0; i < ret; ++i)
VIR_FREE(names[i]);
+out:
sexpr_free(root);
return(ret);
}