hypervObject *head = NULL;
hypervObject *tail = NULL;
WsXmlNodeH node = NULL;
- XML_TYPE_PTR data = NULL;
hypervObject *object;
query_string = virBufferContentAndReset(wqlQuery->query);
response = NULL;
while (enumContext != NULL && *enumContext != '\0') {
+ XML_TYPE_PTR data = NULL;
+
response = wsmc_action_pull(priv->client, wmiInfo->resourceUri, options,
filter, enumContext);
object->info = wmiInfo;
object->data = data;
- data = NULL;
-
if (head == NULL) {
head = object;
} else {
if (filter != NULL)
filter_destroy(filter);
- if (data != NULL) {
- if (ws_serializer_free_mem(serializerContext, data,
- wmiInfo->serializerInfo) < 0) {
- VIR_ERROR(_("Could not free deserialized data"));
- }
- }
-
VIR_FREE(query_string);
ws_xml_destroy_doc(response);
VIR_FREE(enumContext);