Ticket #294 (closed defect: fixed)
Memory leak in Python query constructor
| Reported by: | richard | Owned by: | richard |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0.8 |
| Component: | Xapian-bindings | Version: | 1.0.7 |
| Severity: | normal | Keywords: | |
| Cc: | Blocked By: | ||
| Operating System: | All | Blocking: |
Description
The python query constructor which takes a sequence of queries as an argument leaks memory, due to failing to decref python objects returned from PySequence?_GetItem. I think there are also other memory leaks in the related code. I have a small testcase which reproduces this; though not to hand at present. Making this issue as a placeholder to keep track of this issue.
(Note that valgrind doesn't seem to be able to detect the leak, but the testcase I have is very simple and clear and rapidly uses up 100s of Mbs of memory.)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
