secp256k1_musig_partial_sign loads the two secret nonce scalars and then zeroes the secnonce, so the stack copies are the only ones left. The ARG_CHECKs that follow, four on NULL arguments and one on the secnonce matching the keypair, return without calling secp256k1_musig_partial_sign_clear, which every other exit after the load calls.
This clears the secrets before each of these checks fails, as #1849 did for secp256k1_musig_nonce_gen_counter. The checks keep their order, and the secnonce is still zeroed when the call fails; a new test checks that. It matters only when the illegal callback returns and the API is misused, the key mismatch being the realistic case.