memory leak in lxml xpath function

Bug #397933 reported by simon77
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxml
Fix Released
Medium
scoder

Bug Description

Using the latest available version of lxml in Jaunty (2.1.5-1 ubuntu 2) on a 64 bit system

- A memory leak is encountered in python lxml.
- Repetitive calls of the xpath method in etree imported from lxml fill up memory
- Installing and compiling a recent version of lxml fixes this memory leak.

Small python example below. Just pass some sentences to getPath.

#! /usr/bin/env python
from lxml import etree

def getPath(sentence,path):

    root = etree.fromstring(sentence)

    r = root.xpath(path)

Revision history for this message
scoder (scoder) wrote :

This sounds like a bug that was fixed in 2.2beta3. Please use a 2.2.x release instead.

Changed in lxml:
assignee: nobody → Stefan Behnel (scoder)
importance: Undecided → Medium
milestone: none → 2.2
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.