memory leak in lxml xpath function
Bug #397933 reported by
simon77
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(
root = etree.fromstrin
r = root.xpath(path)
To post a comment you must log in.
This sounds like a bug that was fixed in 2.2beta3. Please use a 2.2.x release instead.