Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Linnakangas2013-09-30 08:29:09 +0000
committerHeikki Linnakangas2013-09-30 10:00:00 +0000
commitfef01d4199f18a9ccc5748fdc9ee44720d3a97c8 (patch)
treef8146ad12b359960c16b40b36c1f09f5529cb611 /src/backend/regex
parent5fdab1ea516ef738a6f34fc22c989ac9902eb4d0 (diff)
Fix snapshot leak if lo_open called on non-existent object.
lo_open registers the currently active snapshot, and checks if the large object exists after that. Normally, snapshots registered by lo_open are unregistered at end of transaction when the lo descriptor is closed, but if we error out before the lo descriptor is added to the list of open descriptors, it is leaked. Fix by moving the snapshot registration to after checking if the large object exists. Reported by Pavel Stehule. Backpatch to 8.4. The snapshot registration system was introduced in 8.4, so prior versions are not affected (and not supported, anyway).
Diffstat (limited to 'src/backend/regex')
0 files changed, 0 insertions, 0 deletions