Fix all flavors of memory crashes. Must implement urgently a free_viewstate function.
no git, the file name is still parser.c