Fixing memory leak.
Fixing memory leak.