no more memleaks and gave up on TABLE_SIZE