Michael Paquier <michael(at)paquier(dot)xyz> writes: > Thanks. This fails when freeing the password field in fe_scram_state.
I had been studying that when the report first arrived. I'm not really happy with the coding in pg_saslprep(): it leaves garbage in its output parameter in some code paths, and I think it leaks memory in others. But I couldn't see a path that would lead to the observed failure.