mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
improving some documentation comments found and fixed a mem leak with
* tree.c: improving some documentation comments * xmlregexp.c: found and fixed a mem leak with python regression tests * doc/*: rebuilt the doc and the API XML file including the xmlregexp.h xmlautomata.h and xmlunicode.h headers * python/generator.py python/libxml2class.txt python/libxml_wrap.h python/types.c: added access to the XML Schemas regexps from python * python/tests/Makefile.am python/tests/regexp.py: added a simple regexp bindings test Daniel
This commit is contained in:
@ -3852,6 +3852,13 @@ xmlRegexpIsDeterminist(xmlRegexpPtr comp) {
|
||||
return(comp->determinist);
|
||||
|
||||
am = xmlNewAutomata();
|
||||
if (am->states != NULL) {
|
||||
int i;
|
||||
|
||||
for (i = 0;i < am->nbStates;i++)
|
||||
xmlRegFreeState(am->states[i]);
|
||||
xmlFree(am->states);
|
||||
}
|
||||
am->nbAtoms = comp->nbAtoms;
|
||||
am->atoms = comp->atoms;
|
||||
am->nbStates = comp->nbStates;
|
||||
|
Reference in New Issue
Block a user