Memory leak fixed.

Memory leak fixed.