assert when memory leaks; memory leak fixed