Added a finalize method to PerformanceGraph as the instance variable that was malloc-ed must be free-d.