Bugs item #3428432, was opened at 2011-10-25 23:35
Message generated for change (Tracker Item Submitted) made by dalke
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3428432&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: Andrew Dalke (dalke)
Assigned to: Nobody/Anonymous (nobody)
Summary: memory leak with evil SMILES
Initial Comment:
Consider this lovely, innocent looking SMILES:
C[C@+@-@+@-@H]1CCCCO1
Open Babel kindly processes it to yield the canonical SMILES of "C[C@H]1CCCCO1"
Unfortunately, it also leaked around 350 bytes of memory. Each "@" allocates
_tetrahedralMap[atom] = new OBTetrahedralStereo::Config;
without checking to see if that was already allocated. Once this pointer is
re-assigned, there's no way to free the previously allocated memory.
This means that if someone has a public facing OpenBabel server, then I can
slowly make it leak memory.
Mwhahahahah! ... Or something like that. :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=428740&aid=3428432&group_id=40728
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel