When LockAcquire fails at the stage of creating a proclock object, be
authorTom Lane <[email protected]>
Sun, 12 Sep 2004 18:30:50 +0000 (18:30 +0000)
committerTom Lane <[email protected]>
Sun, 12 Sep 2004 18:30:50 +0000 (18:30 +0000)
commitabc98dcc152bd3d8e2661c0f50988638725e838d
tree3a09c2377034ebd8ab5c9fb9337ca71e1c339ccf
parent493f72606b463a75ae4e2ee4e64d829e7f56066d
When LockAcquire fails at the stage of creating a proclock object, be
sure to clean up the already-created lock object, if it has no other
references.  Avoids possibly-permanent leak of shared memory.
src/backend/storage/lmgr/lock.c