[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r3747 - trunk/OpenDNSSEC/signer/src/parser

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Aug 12 11:16:55 CEST 2010


Author: matthijs
Date: 2010-08-12 11:16:54 +0200 (Thu, 12 Aug 2010)
New Revision: 3747

Modified:
   trunk/OpenDNSSEC/signer/src/parser/confparser.c
   trunk/OpenDNSSEC/signer/src/parser/signconfparser.c
Log:
mark xml-based global leaks



Modified: trunk/OpenDNSSEC/signer/src/parser/confparser.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/parser/confparser.c	2010-08-12 09:16:36 UTC (rev 3746)
+++ trunk/OpenDNSSEC/signer/src/parser/confparser.c	2010-08-12 09:16:54 UTC (rev 3747)
@@ -87,7 +87,7 @@
     /* Parse a schema definition resource and
      * build an internal XML schema structure.
      */
-    schema = xmlRelaxNGParse(rngpctx);
+    schema = xmlRelaxNGParse(rngpctx); /* VALGRIND does not like */
     if (schema == NULL) {
         se_log_error("unable to parse a schema definition resource");
         xmlRelaxNGFreeParserCtxt(rngpctx);
@@ -146,7 +146,7 @@
     se_log_assert(cfgfile);
 
     /* Load XML document */
-    doc = xmlParseFile(cfgfile);
+    doc = xmlParseFile(cfgfile); /* VALGRIND does not like */
     if (doc == NULL) {
         return NULL;
     }
@@ -178,7 +178,7 @@
     }
     if (xpathObj->nodesetval != NULL &&
         xpathObj->nodesetval->nodeNr > 0) {
-        string = (const char*) xmlXPathCastToString(xpathObj);
+        string = (const char*) xmlXPathCastToString(xpathObj); /* VALGRIND does not like */
         xmlXPathFreeContext(xpathCtx);
         xmlXPathFreeObject(xpathObj);
         xmlFreeDoc(doc);

Modified: trunk/OpenDNSSEC/signer/src/parser/signconfparser.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/parser/signconfparser.c	2010-08-12 09:16:36 UTC (rev 3746)
+++ trunk/OpenDNSSEC/signer/src/parser/signconfparser.c	2010-08-12 09:16:54 UTC (rev 3747)
@@ -100,11 +100,11 @@
             curNode = xpathObj->nodesetval->nodeTab[i]->xmlChildrenNode;
             while (curNode) {
                 if (xmlStrEqual(curNode->name, (const xmlChar *)"Locator")) {
-                    locator = (char *) xmlNodeGetContent(curNode);
+                    locator = (char *) xmlNodeGetContent(curNode); /* VALGRIND does not like */
                 } else if (xmlStrEqual(curNode->name, (const xmlChar *)"Algorithm")) {
-                    algorithm = (char *) xmlNodeGetContent(curNode);
+                    algorithm = (char *) xmlNodeGetContent(curNode); /* VALGRIND does not like */
                 } else if (xmlStrEqual(curNode->name, (const xmlChar *)"Flags")) {
-                    flags = (char *) xmlNodeGetContent(curNode);
+                    flags = (char *) xmlNodeGetContent(curNode); /* VALGRIND does not like */
                 } else if (xmlStrEqual(curNode->name, (const xmlChar *)"KSK")) {
                     ksk = 1;
                 } else if (xmlStrEqual(curNode->name, (const xmlChar *)"ZSK")) {




More information about the Opendnssec-commits mailing list