X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=sfatables%2Fxmlrule.py;h=c363ab925a42775b45dea4882903e7dcd0bba66b;hb=e57b7150dee76d42fc15f9477a3045e5171c8878;hp=70055dd917f02c0b0ace2eb45345ba8c7d38c79d;hpb=46d88522f413cd62c60b081b296634444564813e;p=sfa.git diff --git a/sfatables/xmlrule.py b/sfatables/xmlrule.py index 70055dd9..c363ab92 100644 --- a/sfatables/xmlrule.py +++ b/sfatables/xmlrule.py @@ -17,7 +17,7 @@ class XMLRule: processor = self.processors[type] # XXX TO CLEAN UP - filepath = 'processors/' + processor + filepath = os.path.join(sfatables_config, 'processors', processor) # XXX styledoc = libxml2.parseFile(filepath) @@ -34,6 +34,7 @@ class XMLRule: p.xpathFreeContext() else: stylesheet_result = style.saveResultToString(result) + style.freeStylesheet() doc.freeDoc() result.freeDoc()