Neil Conway <neilc(at)samurai(dot)com> writes:
> Okay, I've attached a patch that fixes the problem for me. The problem
> turned out to be pretty simple: the PostgreSQL code (both backend and
> frontend SSL support) was calling SSL_get_peer_certificate() without
> properly free'ing its return value.
Applied to 7.4 and HEAD.
regards, tom lane