found and fixed a couple of allocation bugs Daniel

* parser.c valid.c: found and fixed a couple of allocation bugs
Daniel
diff --git a/valid.c b/valid.c
index c6db9e4..bb0bf8b 100644
--- a/valid.c
+++ b/valid.c
@@ -421,6 +421,7 @@
 		"xmlNewElementContent : out of memory!\n");
 	return(NULL);
     }
+    memset(ret, 0, sizeof(xmlElementContent));
     ret->type = type;
     ret->ocur = XML_ELEMENT_CONTENT_ONCE;
     if (name != NULL) {