aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuild.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-11-27 12:41:20 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2024-11-27 12:50:23 -0500
commit0e6060790d6533847084770845c84e81862bff47 (patch)
treed6af626c7bc112eecf683bbcf039a55a970d58ec /src/backend/access/gist/gistbuild.c
parent5c32c21afe6449a19b6dfafa17f29b71c9595e03 (diff)
downloadpostgresql-0e6060790d6533847084770845c84e81862bff47.tar.gz
postgresql-0e6060790d6533847084770845c84e81862bff47.zip
ecpg: fix some memory leakage of data-type-related structures.
ECPGfree_type() and related functions were quite incomplete about removing subsidiary data structures. Possibly this is because ecpg wasn't careful to make sure said data structures always had their own storage. Previous patches in this series cleaned up a lot of that, and I had to add a couple more mm_strdup's here. Also, ecpg.trailer tended to overwrite struct_member_list[struct_level] without bothering to free up its previous contents, thus potentially leaking a lot of struct-member-related storage. Add ECPGfree_struct_member() calls at appropriate points. Discussion: https://postgr.es/m/2011420.1713493114@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistbuild.c')
0 files changed, 0 insertions, 0 deletions