mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
valid: Allow xmlFreeValidCtxt(NULL)
This commit is contained in:
2
valid.c
2
valid.c
@@ -879,6 +879,8 @@ xmlValidCtxtPtr xmlNewValidCtxt(void) {
|
|||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
xmlFreeValidCtxt(xmlValidCtxtPtr cur) {
|
xmlFreeValidCtxt(xmlValidCtxtPtr cur) {
|
||||||
|
if (cur == NULL)
|
||||||
|
return;
|
||||||
if (cur->vstateTab != NULL)
|
if (cur->vstateTab != NULL)
|
||||||
xmlFree(cur->vstateTab);
|
xmlFree(cur->vstateTab);
|
||||||
if (cur->nodeTab != NULL)
|
if (cur->nodeTab != NULL)
|
||||||
|
Reference in New Issue
Block a user