end of first pass on coverity reports. Daniel

* runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c
  xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first
  pass on coverity reports.
Daniel
diff --git a/xmlcatalog.c b/xmlcatalog.c
index 0597e88..6f193b1 100644
--- a/xmlcatalog.c
+++ b/xmlcatalog.c
@@ -120,7 +120,10 @@
 	    command[i++] = *cur++;
 	}
 	command[i] = 0;
-	if (i == 0) continue;
+	if (i == 0) {
+	    free(cmdline);
+	    continue;
+	}
 	nbargs++;
 
 	/*