287f46b220
This fixes undetected memory leaks in tests calling mj_loadXML. Additionally, a specific test for `mj_freeLastXML` is introduced. PiperOrigin-RevId: 764294041 Change-Id: I8b5a5683d8431ed920cdd52b06ad3515d8e19e14