Fix a nil memory bug of memory session provider.

Forgot to initialize struct memebers. Shit!