found and fixed a couple of allocation bugs Daniel * parser.c valid.c: found and fixed a couple of allocation bugs Daniel