pgsql: Fix severe memory leaks in GSSAPI encryption support.

2020-05-05 Thread Tom Lane
Fix severe memory leaks in GSSAPI encryption support. Both the backend and libpq leaked buffers containing encrypted data to be transmitted, so that the process size would grow roughly as the total amount of data sent. There were also far-less-critical leaks of the same sort in GSSAPI session est

pgsql: Fix severe memory leaks in GSSAPI encryption support.

2020-05-05 Thread Tom Lane
Fix severe memory leaks in GSSAPI encryption support. Both the backend and libpq leaked buffers containing encrypted data to be transmitted, so that the process size would grow roughly as the total amount of data sent. There were also far-less-critical leaks of the same sort in GSSAPI session est