1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

applied patch from Brent Hendricks to avoid leak in python bindings when

* python/generator.py python/libxml.c: applied patch from Brent
  Hendricks to avoid leak in python bindings when using schemas
  error handlers.
Daniel
This commit is contained in:
Daniel Veillard
2005-03-30 07:40:35 +00:00
parent aa9a983dbd
commit bb8502c0ef
3 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,9 @@
Wed Mar 30 09:39:27 CEST 2005 Daniel Veillard <daniel@veillard.com>
* python/generator.py python/libxml.c: applied patch from Brent
Hendricks to avoid leak in python bindings when using schemas
error handlers.
Tue Mar 29 22:29:28 CEST 2005 Daniel Veillard <daniel@veillard.com>
* HTMLtree.c: fixing bug 168196, <a name=""> must be URI escaped too

View File

@ -346,6 +346,9 @@ def skip_function(name):
return 1
if name == "xmlFreeValidCtxt":
return 1
if name == "xmlSchemaFreeValidCtxt":
return 1
#
# Those are skipped because the Const version is used of the bindings
# instead.

View File

@ -1859,7 +1859,7 @@ libxml_xmlSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
}
PyObject *
static PyObject *
libxml_xmlFreeValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
xmlValidCtxtPtr cur;
xmlValidCtxtPyCtxtPtr pyCtxt;
@ -3289,8 +3289,7 @@ libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args
return(py_retval);
}
#if 0
PyObject *
static PyObject *
libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
{
xmlSchemaValidCtxtPtr ctxt;
@ -3316,7 +3315,6 @@ libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
Py_INCREF(Py_None);
return(Py_None);
}
#endif
#endif
@ -3668,6 +3666,7 @@ static PyMethodDef libxmlMethods[] = {
{(char *)"xmlRelaxNGSetValidErrors", libxml_xmlRelaxNGSetValidErrors, METH_VARARGS, NULL},
{(char *)"xmlRelaxNGFreeValidCtxt", libxml_xmlRelaxNGFreeValidCtxt, METH_VARARGS, NULL},
{(char *)"xmlSchemaSetValidErrors", libxml_xmlSchemaSetValidErrors, METH_VARARGS, NULL},
{(char *)"xmlSchemaFreeValidCtxt", libxml_xmlSchemaFreeValidCtxt, METH_VARARGS, NULL},
#endif
#ifdef LIBXML_C14N_ENABLED
#ifdef LIBXML_OUTPUT_ENABLED