mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Adapt to VIR_ALLOC and virAsprintf in tools/*
This commit is contained in:
@@ -709,10 +709,8 @@ cmdDomIfGetLink(vshControl *ctl, const vshCmd *cmd)
|
||||
|
||||
if (virAsprintf(&xpath, "/domain/devices/interface[(mac/@address = '%s') or "
|
||||
" (target/@dev = '%s')]",
|
||||
macstr, iface) < 0) {
|
||||
virReportOOMError();
|
||||
macstr, iface) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if ((ninterfaces = virXPathNodeSet(xpath, ctxt, &interfaces)) < 0) {
|
||||
vshError(ctl, _("Failed to extract interface information"));
|
||||
|
||||
Reference in New Issue
Block a user