]> granicus.if.org Git - postgresql/commit
Fix memory leaks if random salt generation fails.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 7 May 2017 16:58:21 +0000 (19:58 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sun, 7 May 2017 16:58:21 +0000 (19:58 +0300)
commit0186ded5460c4868db8c5f98ab17287c15fedd7e
tree400d9e03db8e625eb3c4ed5ecb331e2a1f2c8ba4
parenta54d5875fe0bc19d05236b85e1e1bf0af9fa2902
Fix memory leaks if random salt generation fails.

In the backend, this is just to silence coverity warnings, but in the
frontend, it's a genuine leak, even if extremely rare.

Spotted by Coverity, patch by Michael Paquier.
src/backend/libpq/auth-scram.c
src/interfaces/libpq/fe-auth-scram.c