SERVER-138387ClosedFixed

Fix MatchExpression ownership in matcher_typing_test.cpp

This is a test-only issue. MatchExpression doesn't hold ownership of the BSONObj. The test parses the MatchExpression with a temporary BSONObj which broke ASAN in SERVER-134938 when a MatchExpression with an unowned view into the BSON was added. This caused the auto-revert.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.