More cleanups
free memory after each tag