Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 296550a

Browse files
tglsfdcCommitfest Bot
authored and
Commitfest Bot
committed
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 <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/285483.1746756246@sss.pgh.pa.us
1 parent 2af8edb commit 296550a

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)