Free allocated memory in case of an error
Add basic multi-get