Skip to content

Commit 1d32147

Browse files
tglsfdcCommitfest Bot
authored andcommitted
Silence complaints about leaks in postmaster.
Valgrind complains about the postmaster's socket-files and lock-files lists being leaked, which we can silence by just not nulling out the static pointers to them. Author: Tom Lane <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 16d0cbe commit 1d32147

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/backend/libpq/pqcomm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,6 @@ RemoveSocketFiles(void)
858858
(void) unlink(sock_path);
859859
}
860860
/* Since we're about to exit, no need to reclaim storage */
861-
sock_paths = NIL;
862861
}
863862

864863

src/backend/utils/init/miscinit.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,6 @@ UnlinkLockFiles(int status, Datum arg)
11831183
/* Should we complain if the unlink fails? */
11841184
}
11851185
/* Since we're about to exit, no need to reclaim storage */
1186-
lock_files = NIL;
11871186

11881187
/*
11891188
* Lock file removal should always be the last externally visible action

0 commit comments

Comments
 (0)