Update of /cvsroot/monetdb/pathfinder/compiler/xmlimport
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv24990

Modified Files:
      Tag: Nov2009
        xml2lalg.c 
Log Message:
xpathObjPtr cannot be NULL since it was dereferenced a few lines ago.
Found by Coverity.


Index: xml2lalg.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/xmlimport/xml2lalg.c,v
retrieving revision 1.38.4.2
retrieving revision 1.38.4.3
diff -u -d -r1.38.4.2 -r1.38.4.3
--- xml2lalg.c  11 Nov 2009 17:05:27 -0000      1.38.4.2
+++ xml2lalg.c  4 Dec 2009 14:18:36 -0000       1.38.4.3
@@ -2460,8 +2460,7 @@
     if(nodeSetPtr)
         xmlXPathFreeNodeSet(nodeSetPtr);
     */
-    if(xpathObjPtr)
-        xmlXPathFreeObject(xpathObjPtr);
+    xmlXPathFreeObject(xpathObjPtr);
 
     return rootNode;
 }


------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to