Skip to content

Commit 92e3eb5

Browse files
tglsfdcCommitfest Bot
authored andcommitted
Fix leak in logicalrep_worker_detach().
This runs in a long-lived context, so Valgrind complains about it. It's not clear to me that very much memory can actually be lost. Author: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent b1536f6 commit 92e3eb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/replication/logical/launcher.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,8 @@ logicalrep_worker_detach(void)
790790
}
791791

792792
LWLockRelease(LogicalRepWorkerLock);
793+
794+
list_free(workers);
793795
}
794796

795797
/* Block concurrent access. */

0 commit comments

Comments
 (0)