ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Measuring free memory is not an appropriate way to check for a memory leak, for a couple of reasons:
If you want to check for memory leaks, use a memory check tool such as valgrind
; these can track that each memory allocation call has a matching deallocation call, and can even give you hints about which allocations may be the source of memory leaks.