Does the allocated memory need to be freed?