remove error for memory leaks