fix memory leak in get operation
Merge pull request #3 from Yuras/leak

fix memory leak in get operation