postgresql/src/backend/tsearch
Tom Lane 41b45576d5 Remove useless pfree()s at the ends of various ValuePerCall SRFs.
We don't need to manually clean up allocations in a SRF's
multi_call_memory_ctx, because the SRF_RETURN_DONE infrastructure
takes care of that (and also ensures that it will happen even if the
function never gets a final call, which simple manual cleanup cannot
do).

Hence, the code removed by this patch is a waste of code and cycles.
Worse, it gives the impression that cleaning up manually is a thing,
which can lead to more serious errors such as those fixed in
commits 085b6b667 and b4570d33a.  So we should get rid of it.

These are not quite actual bugs though, so I couldn't muster the
enthusiasm to back-patch.  Fix in HEAD only.

Justin Pryzby

Discussion: https://postgr.es/m/20200308173103.GC1357@telsasoft.com
2020-03-16 21:36:53 -04:00
..
dicts Update copyright for 2019 2019-01-02 12:44:25 -05:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dict.c Introduce macros for typalign and typstorage constants. 2020-03-04 10:34:25 -05:00
dict_ispell.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dict_simple.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dict_synonym.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
dict_thesaurus.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
regis.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
spell.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
to_tsany.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
ts_locale.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
ts_parse.c Clean up newlines following left parentheses 2020-01-30 13:42:14 -03:00
ts_selfuncs.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
ts_typanalyze.c Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
ts_utils.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
wparser.c Remove useless pfree()s at the ends of various ValuePerCall SRFs. 2020-03-16 21:36:53 -04:00
wparser_def.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00