git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3ec20c7) | patch
Fix some memory leaks and improve restricted token handling on Windows
2020年1月27日 02:02:05 +0000 (11:02 +0900)
2020年1月27日 02:02:05 +0000 (11:02 +0900)
commit 10a525230fb18331dbcfd6a4a7248d76f55c331c
Fix some memory leaks and improve restricted token handling on Windows

The leaks have been detected by a Coverity run on Windows. No backpatch
is done as the leaks are minor.

While on it, make restricted token creation more consistent in its error
handling by logging an error instead of a warning if missing
advapi32.dll, which was missing in the NT4 days. Any modern platform
should have this DLL around. Now, if the library is not there, an error
is still reported back to the caller, and nothing is done do there is no
behavior change done in this commit.

Author: Ranier Vilela
Discussion: https://postgr.es/m/CAEudQApa9MG0foPkgPX87fipk=vhnF2Xfg+CfUyR08h4R7Mywg@mail.gmail.com
src/backend/libpq/auth.c diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/common/restricted_token.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /