remove memory leak.