mirror of
https://github.com/postgres/postgres.git
synced 2025-05-28 00:03:23 -04:00
Small tidyup for commit d41a178b, part II.
Further to commit 6a9229da, 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
This commit is contained in:
parent
9bfd2822b3
commit
10b6745d31
@ -4790,11 +4790,6 @@ retry:
|
||||
* freed by a later call to waitpid().
|
||||
*/
|
||||
childinfo = palloc(sizeof(win32_deadchild_waitinfo));
|
||||
if (!childinfo)
|
||||
ereport(FATAL,
|
||||
(errcode(ERRCODE_OUT_OF_MEMORY),
|
||||
errmsg("out of memory")));
|
||||
|
||||
childinfo->procHandle = pi.hProcess;
|
||||
childinfo->procId = pi.dwProcessId;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user