Merge "CameraMetadata: avoid memory leak in case allocate_camera_metadata fails." into sc-dev