fix memory allocation issue
Merge branch 'master' of https://github.com/Scalable-Key-Value/code