Re: [HACKERS] Close handle leak in SSPI auth

2016-01-14 Thread Magnus Hagander
On Sun, Jan 10, 2016 at 8:58 PM, Christian Ullrich wrote: > Hello, > > here's a one-line patch to close a handle leak in pg_SSPI_recvauth(). > > According to the docs, the token retrieved with > QuerySecurityContextToken() must be closed. We still leak it in a number of the error paths in this

[HACKERS] Close handle leak in SSPI auth

2016-01-10 Thread Christian Ullrich
Hello, here's a one-line patch to close a handle leak in pg_SSPI_recvauth(). According to the docs, the token retrieved with QuerySecurityContextToken() must be closed. -- Christian diff --git a/src/backend/libpq/auth.c b/src/backend/libpq/auth.c new file mode 100644 index 0131bfd..57c2f48 *