nodes: improved handling of memstat messages.

This commit is contained in:
Martin Preuss
2026-06-01 15:56:38 +02:00
parent c262c4a56a
commit 6117ce5cad
8 changed files with 165 additions and 29 deletions

View File

@@ -250,17 +250,8 @@ AQHNODE_DEVICE *_readXmlDevice(GWEN_XMLNODE *deviceNode)
AQHNODE_VALUE_LIST *valueList;
valueList=_readXmlValueList(valuesNode);
if (valueList==NULL) {
DBG_INFO(NULL, "here");
AQHNODE_Device_free(device);
return NULL;
}
AQHNODE_Device_SetValueList(device, valueList);
}
else {
DBG_INFO(NULL, "No <values> element");
AQHNODE_Device_free(device);
return NULL;
if (valueList)
AQHNODE_Device_SetValueList(device, valueList);
}
return device;