Fix Memory leak.