Hi there,
I usually run valgrind to detect memory leaks in my applications. The problem is that valgrind reports tons of (I guess false positive) errors/warnings against RTI Connext DDS libraries.
I was wondering if there's someone that created a suppression filter for valgrind to exclude from the check RTI functions and libraries.ù
Best regards
Massimo
Hi Massimo,
Could you copy here the call stack of a few of the leaks you're seeing?
Alex
Hello Alejandro,
I've attached the valgrind report to this comment.
Massimo
I think those memory leaks are in the singleton DomainParticipantFactory. If you want to free this memory before your application exits, you can use
DomainParticipant::finalize_participant_factory()
. Note that this is a static method in theDomainParticipant
because the Modern C++ API doesn't expose a explicitDomainParticipantFactory
class, unlike the other language APIs.This leak is not really an issue, because it only happens when the application exits, but the finalize() method is there precisely to avoid issues with memory profilers.
Let me know if that cleans up your valgrind report.
Alex
Hello Alex,
you're right. I've added the call to the finalize method and this cleaned up all valgrind reports.
Thank you
Massimo