fix a few memory inconsistencies and a leak with Event Lists
cpputest change