[libxslt] Don't call xmlFreeRefTable



commit 6e57e3939499e403fc5a93a0e1eb0fe424614925
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Sat Feb 26 17:45:58 2022 +0100

    Don't call xmlFreeRefTable
    
    The ref table is only used for DTD validation of parsed documents.

 libxslt/variables.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/libxslt/variables.c b/libxslt/variables.c
index 4c972a41..03082700 100644
--- a/libxslt/variables.c
+++ b/libxslt/variables.c
@@ -363,7 +363,6 @@ xsltReleaseRVT(xsltTransformContextPtr ctxt, xmlDocPtr RVT)
        }
        /*
        * Clear the document tree.
-       * REVISIT TODO: Do we expect ID/IDREF tables to be existent?
        */
        if (RVT->children != NULL) {
            xmlFreeNodeList(RVT->children);
@@ -374,10 +373,6 @@ xsltReleaseRVT(xsltTransformContextPtr ctxt, xmlDocPtr RVT)
            xmlFreeIDTable((xmlIDTablePtr) RVT->ids);
            RVT->ids = NULL;
        }
-       if (RVT->refs != NULL) {
-           xmlFreeRefTable((xmlRefTablePtr) RVT->refs);
-           RVT->refs = NULL;
-       }
 
        /*
        * Reset the ownership information.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]