eliminate memory leak.