Skip to content

Commit

Permalink
valgrind fix
Browse files Browse the repository at this point in the history
  • Loading branch information
randaz81 committed Nov 29, 2023
1 parent 9f4f005 commit 50cc9cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ yarp::robotinterface::XMLReaderResult yarp::robotinterface::XMLReader::getRobotF
std::string path = filename.substr(0, filename.rfind(yarp::conf::filesystem::preferred_separator));

yDebug() << "Reading file" << filename.c_str();
auto* doc = new TiXmlDocument(filename.c_str());
auto doc = std::make_unique< TiXmlDocument>(TiXmlDocument(filename.c_str()));
if (!doc->LoadFile()) {
SYNTAX_ERROR(doc->ErrorRow()) << doc->ErrorDesc();
return yarp::robotinterface::XMLReaderResult::ParsingFailed();
Expand Down

0 comments on commit 50cc9cd

Please sign in to comment.