ros-industrial / abb_librws

A C++ library for interfacing with ABB robot controllers supporting Robot Web Services

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix memory leak

jontje opened this issue · comments

There is a memory leak in rws_common.cpp (line 104 and 134) where dynamically allocated memory is not released. I.e. when using Poco::XML::Node::childNodes() and Poco::XML::Node::attributes().

See documentation at: https://pocoproject.org/docs/Poco.XML.Node.html

Poco::AutoPtr can be used to take care of this.

Solved by pull request #34