postgresql/src
Peter Eisentraut a9d58bfe8a Fix tiny memory leaks
Both check_application_name() and check_cluster_name() use
pg_clean_ascii() but didn't release the memory.  Depending on when the
GUC is set, this might be cleaned up at some later time or it would
leak postmaster memory once.  In any case, it seems better not to have
to rely on such analysis and make the code locally robust.  Also, this
makes Valgrind happier.

Author: Masahiko Sawada <sawada.mshk@gmail.com>
Reviewed-by: Jacob Champion <jchampion@timescale.com>
Discussion: https://www.postgresql.org/message-id/CAD21AoBmFNy9MPfA0UUbMubQqH3AaK5U3mrv6pSeWrwCk3LJ8g@mail.gmail.com
2022-10-01 12:48:24 +02:00
..
backend Fix tiny memory leaks 2022-10-01 12:48:24 +02:00
bin Fix tab-completion after commit 790bf615dd 2022-09-30 12:53:31 +02:00
common Change some errdetail() to errdetail_internal() 2022-09-28 17:14:53 +02:00
fe_utils Revert 56-bit relfilenode change and follow-up commits. 2022-09-28 09:55:28 -04:00
include mingw: Define PGDLLEXPORT as __declspec (dllexport) as done for msvc 2022-09-30 10:50:05 -07:00
interfaces Adjust PQsslAttributeNames() to match PQsslAttribute(). 2022-09-30 10:26:47 -04:00
makefiles windows: remove date from version number in win32ver.rc 2022-09-26 11:38:02 -07:00
pl Introduce GUC_NO_RESET flag. 2022-09-27 11:47:12 -04:00
port windows: Set UMDF_USING_NTSTATUS globally, include ntstatus.h 2022-09-28 21:59:15 -07:00
template Move darwin sysroot determination into separate file 2022-09-01 16:54:19 -07:00
test Fix tab-completion after commit 790bf615dd 2022-09-30 12:53:31 +02:00
timezone meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
tools ci: Add hint about downloadable logs to README 2022-09-26 20:02:26 -07:00
tutorial Update copyright for 2022 2022-01-07 19:04:57 -05:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split TESTDIR into TESTLOGDIR and TESTDATADIR 2022-09-19 18:03:17 -07:00
Makefile.shlib aix: No need to use mkldexport when we want to export all symbols 2022-09-09 19:11:49 -07:00
meson.build meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
nls-global.mk Fix for make unportability 2022-07-13 09:15:01 +02:00