Reproduction steps:
1. Open the attached “IN-96545.zip” project
2. Open the “SampleScene”
3. Enter the Play mode
4. Open the Memory Profiler Window (Window > Analysis > Memory Profiler)
5. Click “Capture New Snapshot”
6. Open the captured Snapshot
7. In the Unity Objects tab search for the Allocated Memory of the “_CameraTargetAttachmentB”
Expected result: “_CameraTargetAttachmentB” does not allocate memory
Actual result: “_CameraTargetAttachmentB” allocates memory
Reproducible with: 6000.0.41f1, 6000.1.0b9, 6000.2.0a6
Couldn't test with: 2022.3.59f1 (Render Graph not compatible)
Reproducible on: Windows 11, macOS 15.3.1 (M1 Max)
Not reproducible on: no other environment tested