diff --git a/src/ParamGetImpl/LocalFileInterface/FileReaderVOTable.cc b/src/ParamGetImpl/LocalFileInterface/FileReaderVOTable.cc index 0a8b705..2cb41a4 100644 --- a/src/ParamGetImpl/LocalFileInterface/FileReaderVOTable.cc +++ b/src/ParamGetImpl/LocalFileInterface/FileReaderVOTable.cc @@ -83,7 +83,10 @@ void FileReaderVOTable::getVOTableInfo(void) { (const xmlChar*) "ID"); if (groupId != NULL) + { crtGroupId = std::string((const char*) groupId); + xmlFree((xmlChar *) groupId); + } else crtGroupId = ""; } @@ -110,13 +113,22 @@ void FileReaderVOTable::getVOTableInfo(void) { paramInfo->setGroupId(crtGroupId); if (paramName != NULL) + { paramInfo->setName((const char *) paramName); + xmlFree((xmlChar *) paramName); + } if (paramSize != NULL) + { paramInfo->setSize((const char *) paramSize); + xmlFree((xmlChar *) paramSize); + } if (paramValue != NULL) + { paramInfo->setValue((const char *) paramValue); + xmlFree((xmlChar *) paramValue); + } LOG4CXX_INFO(gLogger, "PARAM : " << tagName << ", GROUP ID = " << paramInfo->getGroupId() << -- libgit2 0.21.2