[ros-users] Fix for big memory leak in frame_common
Abe Bachrach
abachrach at gmail.com
Sat Jun 12 01:23:52 UTC 2010
Hey Kurt,
In playing around with the vslam_system a bit, I found the source of a big
memory leak in frame_common (was leaking an image size buffer on each
frame).
The destructor for the DenseStereo object was not being called since the
pointer to was of type FrameStereo
I've attached a diff for the changes to the file
wg-ros-pkg-unreleased/vision/frame_common/src/frame.cpp
that fixes the memory leak
The memory usage still seems to grow slowly over time when running just the
VO (no place recognition or pose graph optimization), so there may be a
small leak somewhere else but this one was the major one...
-=Abe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100611/0a2f0a31/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frame.cpp.diff
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100611/0a2f0a31/attachment-0004.bin>
More information about the ros-users
mailing list