diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-03-12 16:06:19 +0100 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2023-03-12 16:06:19 +0100 |
commit | a57a7549fabfb7112510a2ee80a874e988200c32 (patch) | |
tree | 02176e824668802b7fae25bc5d65d41447722184 /valid.c | |
parent | 21cec82bea27aa7b15eb9618daf18a491be4a58a (diff) | |
download | libxml2-a57a7549fabfb7112510a2ee80a874e988200c32.tar.gz |
valid: Allow xmlFreeValidCtxt(NULL)
Diffstat (limited to 'valid.c')
-rw-r--r-- | valid.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -879,6 +879,8 @@ xmlValidCtxtPtr xmlNewValidCtxt(void) { */ void xmlFreeValidCtxt(xmlValidCtxtPtr cur) { + if (cur == NULL) + return; if (cur->vstateTab != NULL) xmlFree(cur->vstateTab); if (cur->nodeTab != NULL) |