Fix memory leaks in px_crypt_shacrypt().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Apr 2025 15:57:22 +0000 (11:57 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 6 Apr 2025 15:57:22 +0000 (11:57 -0400)
commit8ab6ef2bb8d9a00d205742932eb0b6daf62b34e0
tree3e422de931e6fdd4e2c94cd81f92b5ae48cc130c
parent2e4ccf1b4508cc337bb4d0afff1e32a049d549fc
Fix memory leaks in px_crypt_shacrypt().

Per Coverity.  I don't think these are of any actual significance
since the function ought to be invoked in a short-lived context.
Still, if it's trying to be neat it should get it right.

Also const-ify a constant and fix up typedef formatting.
contrib/pgcrypto/crypt-sha.c
src/tools/pgindent/typedefs.list