--- src/backend/storage/ipc/standby.c.org 2013-06-04 14:10:24.000000000 +0900 +++ src/backend/storage/ipc/standby.c.new 2013-06-04 14:48:45.000000000 +0900 @@ -886,6 +886,9 @@ if (nlocks > 0) LogAccessExclusiveLocks(nlocks, locks); + pfree(locks); + + /* * Log details of all in-progress transactions. This should be the last * record we write, because standby will open up when it sees this.