• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1From a57a7549fabfb7112510a2ee80a874e988200c32 Mon Sep 17 00:00:00 2001
2From: Nick Wellnhofer <wellnhofer@aevum.de>
3Date: Sun, 12 Mar 2023 16:06:19 +0100
4Subject: [PATCH] valid: Allow xmlFreeValidCtxt(NULL)
5
6
7Reference:https://github.com/GNOME/libxml2/commit/a57a7549fabfb7112510a2ee80a874e988200c32
8Conflict:NA
9
10---
11 valid.c | 2 ++
12 1 file changed, 2 insertions(+)
13
14diff --git a/valid.c b/valid.c
15index b7b92fe..9a2c708 100644
16--- a/valid.c
17+++ b/valid.c
18@@ -899,6 +899,8 @@ xmlValidCtxtPtr xmlNewValidCtxt(void) {
19  */
20 void
21 xmlFreeValidCtxt(xmlValidCtxtPtr cur) {
22+    if (cur == NULL)
23+        return;
24     if (cur->vstateTab != NULL)
25         xmlFree(cur->vstateTab);
26     if (cur->nodeTab != NULL)
27--
282.27.0
29
30