[Xapian-tickets] [Xapian] #294: Memory leak in Python query constructor

Xapian nobody at xapian.org
Tue Sep 2 16:21:28 BST 2008


#294: Memory leak in Python query constructor
-----------------------------+----------------------------------------------
 Reporter:  richard          |       Owner:  richard
     Type:  defect           |      Status:  new    
 Priority:  normal           |   Milestone:  1.0.8  
Component:  Xapian-bindings  |     Version:  1.0.7  
 Severity:  normal           |    Keywords:         
Blockedby:                   |    Platform:  All    
 Blocking:                   |  
-----------------------------+----------------------------------------------
 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.)

-- 
Ticket URL: <http://trac.xapian.org/ticket/294>
Xapian <http://xapian.org/>
Xapian



More information about the Xapian-tickets mailing list