Prints allocated memory