freeing buffers after allocation new memory and writing meta information, which caused to memory consumption