8000 Small tidyup for commit d41a178b, part II. · postgres/postgres@b23f2a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit b23f2a7

Browse files
committed
Small tidyup for commit d41a178, part II.
Further to commit 6a9229d, checking for NULL is now redundant. An "out of memory" error would have been thrown already by palloc() and treated as FATAL, so we can delete a few more lines. Back-patch to all releases, like those other commits. Reported-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/4040668.1679013388%40sss.pgh.pa.us
1 parent 25ae3bb commit b23f2a7

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/backend/postmaster/postmaster.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4746,11 +4746,6 @@ internal_forkexec(int argc, char *argv[], Port *port)
47464746
* freed by a later call to waitpid().
47474747
*/
47484748
childinfo = palloc(sizeof(win32_deadchild_waitinfo));
4749-
if (!childinfo)
4750-
ereport(FATAL,
4751-
(errcode(ERRCODE_OUT_OF_MEMORY),
4752-
errmsg("out of memory")));
4753-
47544749
childinfo->procHandle = pi.hProcess;
47554750
childinfo->procId = pi.dwProcessId;
47564751

0 commit comments

Comments
 (0)
0