cleanup of memleak testing; no solution yet