aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistget.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-03-07 13:25:11 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2014-03-07 13:29:36 +0200
commitf650387b5038b50407d33d1e9b7590483bb11a72 (patch)
treefc71952893b11c512fdd25c469f86c3bcce32f8f /src/backend/access/gist/gistget.c
parent4afc3f0faa3b1f86c23dabe716c3324962543fa6 (diff)
downloadpostgresql-f650387b5038b50407d33d1e9b7590483bb11a72.tar.gz
postgresql-f650387b5038b50407d33d1e9b7590483bb11a72.zip
Fix dangling smgr_owner pointer when a fake relcache entry is freed.
A fake relcache entry can "own" a SmgrRelation object, like a regular relcache entry. But when it was free'd, the owner field in SmgrRelation was not cleared, so it was left pointing to free'd memory. Amazingly this apparently hasn't caused crashes in practice, or we would've heard about it earlier. Andres found this with Valgrind. Report and fix by Andres Freund, with minor modifications by me. Backpatch to all supported versions.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions