Commit id '
c9027d8f' added parsing of the CapNet for offload SRIOV NIC
discovery, but forgot to free the nodes
xmlNodePtr orignode, lnk;
size_t i = -1;
int ret = -1, n = -1;
- char *tmp;
+ char *tmp = NULL;
xmlNodePtr *nodes = NULL;
orignode = ctxt->node;
goto out;
}
ignore_value(virBitmapSetBit(data->net.features, val));
+ VIR_FREE(tmp);
}
data->net.subtype = VIR_NODE_DEV_CAP_NET_LAST;
ret = 0;
out:
ctxt->node = orignode;
+ VIR_FREE(nodes);
+ VIR_FREE(tmp);
return ret;
}