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:
@ -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>
|
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
|
* HTMLtree.c: fixing bug 168196, <a name=""> must be URI escaped too
|
||||||
|
@ -346,6 +346,9 @@ def skip_function(name):
|
|||||||
return 1
|
return 1
|
||||||
if name == "xmlFreeValidCtxt":
|
if name == "xmlFreeValidCtxt":
|
||||||
return 1
|
return 1
|
||||||
|
if name == "xmlSchemaFreeValidCtxt":
|
||||||
|
return 1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Those are skipped because the Const version is used of the bindings
|
# Those are skipped because the Const version is used of the bindings
|
||||||
# instead.
|
# instead.
|
||||||
|
@ -1859,7 +1859,7 @@ libxml_xmlSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
PyObject *
|
static PyObject *
|
||||||
libxml_xmlFreeValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
|
libxml_xmlFreeValidCtxt(PyObject *self ATTRIBUTE_UNUSED, PyObject *args) {
|
||||||
xmlValidCtxtPtr cur;
|
xmlValidCtxtPtr cur;
|
||||||
xmlValidCtxtPyCtxtPtr pyCtxt;
|
xmlValidCtxtPyCtxtPtr pyCtxt;
|
||||||
@ -3289,8 +3289,7 @@ libxml_xmlSchemaSetValidErrors(ATTRIBUTE_UNUSED PyObject * self, PyObject * args
|
|||||||
return(py_retval);
|
return(py_retval);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
static PyObject *
|
||||||
PyObject *
|
|
||||||
libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
||||||
{
|
{
|
||||||
xmlSchemaValidCtxtPtr ctxt;
|
xmlSchemaValidCtxtPtr ctxt;
|
||||||
@ -3316,7 +3315,6 @@ libxml_xmlSchemaFreeValidCtxt(ATTRIBUTE_UNUSED PyObject * self, PyObject * args)
|
|||||||
Py_INCREF(Py_None);
|
Py_INCREF(Py_None);
|
||||||
return(Py_None);
|
return(Py_None);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -3668,6 +3666,7 @@ static PyMethodDef libxmlMethods[] = {
|
|||||||
{(char *)"xmlRelaxNGSetValidErrors", libxml_xmlRelaxNGSetValidErrors, METH_VARARGS, NULL},
|
{(char *)"xmlRelaxNGSetValidErrors", libxml_xmlRelaxNGSetValidErrors, METH_VARARGS, NULL},
|
||||||
{(char *)"xmlRelaxNGFreeValidCtxt", libxml_xmlRelaxNGFreeValidCtxt, METH_VARARGS, NULL},
|
{(char *)"xmlRelaxNGFreeValidCtxt", libxml_xmlRelaxNGFreeValidCtxt, METH_VARARGS, NULL},
|
||||||
{(char *)"xmlSchemaSetValidErrors", libxml_xmlSchemaSetValidErrors, METH_VARARGS, NULL},
|
{(char *)"xmlSchemaSetValidErrors", libxml_xmlSchemaSetValidErrors, METH_VARARGS, NULL},
|
||||||
|
{(char *)"xmlSchemaFreeValidCtxt", libxml_xmlSchemaFreeValidCtxt, METH_VARARGS, NULL},
|
||||||
#endif
|
#endif
|
||||||
#ifdef LIBXML_C14N_ENABLED
|
#ifdef LIBXML_C14N_ENABLED
|
||||||
#ifdef LIBXML_OUTPUT_ENABLED
|
#ifdef LIBXML_OUTPUT_ENABLED
|
||||||
|
Reference in New Issue
Block a user