10162014 debug some memeory leaks

return pointer, not the member variable.
that was the point