Revision cd6c03b5c15e2b8bf306d97ed9befaf83ace5f93 authored by Heikki Linnakangas on 30 September 2013, 08:29:09 UTC, committed by Heikki Linnakangas on 30 September 2013, 09:55:57 UTC
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).
1 parent 03b6a6b
History
File Mode Size
config
contrib
doc
src
.gitignore -rw-r--r-- 360 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.7 KB
Makefile -rw-r--r-- 1.5 KB
README -rw-r--r-- 1.3 KB
README.git -rw-r--r-- 820 bytes
aclocal.m4 -rw-r--r-- 385 bytes
configure -rwxr-xr-x 850.1 KB
configure.in -rw-r--r-- 62.7 KB

README

back to top