diff options
author | David Rowley <drowley@postgresql.org> | 2021-07-13 13:27:44 +1200 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2021-07-13 13:27:44 +1200 |
commit | a92709fed63428a711f36270a2b4bee039399d60 (patch) | |
tree | d99a1f102305c0b81ed422ad7b39f32ce1099b51 /src/backend/executor/nodeMemoize.c | |
parent | a3b8d91ccd7964e5bec1066c9e598277294efd33 (diff) | |
download | postgresql-a92709fed63428a711f36270a2b4bee039399d60.tar.gz postgresql-a92709fed63428a711f36270a2b4bee039399d60.zip |
Robustify tuplesort's free_sort_tuple function
41469253e went to the trouble of removing a theoretical bug from
free_sort_tuple by checking if the tuple was NULL before freeing it. Let's
make this a little more robust by also setting the tuple to NULL so that
should we be called again we won't end up doing a pfree on the already
pfree'd tuple. Per advice from Tom Lane.
Discussion: https://postgr.es/m/3188192.1626136953@sss.pgh.pa.us
Backpatch-through: 9.6, same as 41469253e
Diffstat (limited to 'src/backend/executor/nodeMemoize.c')
0 files changed, 0 insertions, 0 deletions