Bugs item #3022955, was opened at 2010-06-29 21:18
Message generated for change (Tracker Item Submitted) made by dma_k
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3022955&group_id=40728

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dmitry Katsubo (dma_k)
Assigned to: Nobody/Anonymous (nobody)
Summary: Memory leak in OBConversion::LoadFormatFiles() (v2.2.3)

Initial Comment:
Dear OpenBabel developers!

I am tracing leaks in my application with valgrind and I think, one report 
looks like a memory leak in OpenBabel.

My investigations:
In obconversion.cpp:329 when pdef->MakeInstance(vec) is called, it returns a 
new instance of OpenBabel::OBDefine which is never freed.

valgrind trace:
==30507==    at 0x48243C5: operator new(unsigned int) (vg_replace_malloc.c:214)
==30507==    by 0x49FA633: 
OpenBabel::OBDefine::MakeInstance(std::vector<std::string, 
std::allocator<std::string> > const&) (in /usr/lib/libopenbabel.so.3.0.3)
==30507==    by 0x495A526: OpenBabel::OBConversion::LoadFormatFiles() (in 
/usr/lib/libopenbabel.so.3.0.3)
==30507==    by 0x495A88F: OpenBabel::OBConversion::OBConversion(std::istream*, 
std::ostream*) (in /usr/lib/libopenbabel.so.3.0.3)

Additional info: Debian [squeeze], libopenbabel3-2.2.3-1+b1

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3022955&group_id=40728

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to