[Biopython-dev] [Bug 2924] New: memory leak in cnexus.c
bugzilla-daemon at portal.open-bio.org
bugzilla-daemon at portal.open-bio.org
Tue Oct 6 06:31:44 UTC 2009
http://bugzilla.open-bio.org/show_bug.cgi?id=2924
Summary: memory leak in cnexus.c
Product: Biopython
Version: 1.52
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Main Distribution
AssignedTo: biopython-dev at biopython.org
ReportedBy: jheled at gmail.com
There seem to be a serious leak in cnexus. The python documentation says,
When memory buffers are passed as parameters to supply data to
build objects, as for the `s' and `s#' formats, the required data
is copied. Buffers provided by the caller are never referenced by
the objects created by `Py_BuildValue()'. In other words, if your
code invokes `malloc()' and passes the allocated memory to
`Py_BuildValue()', your code is responsible for calling `free()'
for that memory once `Py_BuildValue()' returns.
--
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Biopython-dev
mailing list