postgresql/src
Tom Lane 2b41de4a5b ecpg: clean up some other assorted memory leaks.
Avoid leaking the prior value when updating the "connection"
state variable.

Ditto for ECPGstruct_sizeof.  (It seems like this one ought to
be statement-local, but testing says it isn't, and I didn't
feel like diving deeper.)

The actual_type[] entries are statement-local, though, so
no need to mm_strdup() strings stored in them.

Likewise, sqlda variables are statement-local, so we can
loc_alloc them.

Also clean up sloppiness around management of the argsinsert and
argsresult lists.

progname changes are strictly to prevent valgrind from complaining
about leaked allocations.

With this, valgrind reports zero leakage in the ecpg preprocessor
for all of our ecpg regression test cases.

Discussion: https://postgr.es/m/2011420.1713493114@sss.pgh.pa.us
2024-11-27 12:50:23 -05:00
..
backend Look up backend type in pg_signal_backend() more cheaply. 2024-11-27 10:32:25 -06:00
bin pgbench: Ensure previous progress message is fully cleared when updating. 2024-11-27 23:01:53 +09:00
common jsonapi: add lexer option to keep token ownership 2024-11-27 12:07:14 -05:00
fe_utils Remove unused #include's from bin .c files 2024-11-06 11:11:52 +01:00
include jsonapi: add lexer option to keep token ownership 2024-11-27 12:07:14 -05:00
interfaces ecpg: clean up some other assorted memory leaks. 2024-11-27 12:50:23 -05:00
makefiles Use __attribute__((target(...))) for AVX-512 support. 2024-11-07 13:58:43 -06:00
pl Add support for Tcl 9 2024-11-25 11:44:29 +01:00
port Support runtime CRC feature probing on NetBSD/ARM using sysctl(). 2024-11-25 11:53:26 -05:00
template thread-safety: gmtime_r(), localtime_r() 2024-08-23 07:43:04 +02:00
test jsonapi: add lexer option to keep token ownership 2024-11-27 12:07:14 -05:00
timezone Update time zone data files to tzdata release 2024b. 2024-10-29 11:49:38 -04:00
tools ci: Fix cached MacPorts installation management 2024-11-27 11:51:54 -05:00
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
Makefile.global.in Use __attribute__((target(...))) for AVX-512 support. 2024-11-07 13:58:43 -06:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk Remove distprep 2023-11-06 15:18:04 +01:00