strands-project / mongodb_store

MongoDB tools for storing and analysing runs of ROS systems.
BSD 3-Clause "New" or "Revised" License
49 stars 72 forks source link

MessageStoreProxy c++ wrapper memory issue #159

Closed hkaraoguz closed 8 years ago

hkaraoguz commented 8 years ago

When using MessageStoreProxy object as a singleton, memory leak is happening when a query is executed. The cause of the issue is probably the usage of std::vector< std::pair<boost::shared_ptr<MsgType> > during querying where reference count of boost::shared_ptr objects remains larger than 0 even if the returned results go out of scope.

hawesie commented 8 years ago

Please could you post the minimum necessary bit of code to recreate this?

hkaraoguz commented 8 years ago

I think I managed to solve it by code restructuring. It seems not directly related to MessageStoreProxy itself. The issue can be closed. Thanks!