Bugs item #3081093, was opened at 2010-10-04 21:39
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=3081093&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: Library Functions
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 AliasData::Expand()

Initial Comment:
The function AliasData::Expand(OBMol& mol, const unsigned int atomindex) 
allocates memory in src/alias.cpp:42:
char* txt = new char[_alias.size()+1];
which is never free()'d. Note: this function has several return points, none of 
them frees the memory.

valgrind report:
==29705== 64 bytes in 32 blocks are definitely lost in loss record 165 of 209
==29705==    at 0x4824059: operator new[](unsigned int) 
(vg_replace_malloc.c:258)
==29705==    by 0x4894ACA: OpenBabel::AliasData::Expand(OpenBabel::OBMol&, 
unsigned int) (in /usr/lib/libopenbabel.so.3.0.3)

OpenBabel library sources:
http://ftp.de.debian.org/debian/pool/main/o/openbabel/openbabel_2.2.3.orig.tar.gz

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

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

------------------------------------------------------------------------------
Virtualization is moving to the mainstream and overtaking non-virtualized
environment for deploying applications. Does it make network security 
easier or more difficult to achieve? Read this whitepaper to separate the 
two and get a better understanding.
http://p.sf.net/sfu/hp-phase2-d2d
_______________________________________________
OpenBabel-Devel mailing list
OpenBabel-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-devel

Reply via email to