Memory leak

Fixed another memory leak which had the potential of consuming huge
amounts of ram if there are enough objects to be parsed and compiled.