postgresql/src/backend/port
Tom Lane 052cc223d5 Fix a bunch of places that called malloc and friends with no NULL check.
Where possible, use palloc or pg_malloc instead; otherwise, insert
explicit NULL checks.

Generally speaking, these are places where an actual OOM is quite
unlikely, either because they're in client programs that don't
allocate all that much, or they're very early in process startup
so that we'd likely have had a fork() failure instead.  Hence,
no back-patch, even though this is nominally a bug fix.

Michael Paquier, with some adjustments by me

Discussion: <CAB7nPqRu07Ot6iht9i9KRfYLpDaF2ZuUv5y_+72uP23ZAGysRg@mail.gmail.com>
2016-08-30 18:22:43 -04:00
..
aix Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
dynloader Fix a bunch of places that called malloc and friends with no NULL check. 2016-08-30 18:22:43 -04:00
hpux Redefine Datum as uintptr_t, instead of unsigned long. 2009-12-31 19:41:37 +00:00
tas Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32 Support building with Visual Studio 2015 2016-04-29 08:09:07 -04:00
.gitignore Combine win32 and unix latch implementations. 2016-03-21 11:03:26 +01:00
atomics.c pgindent run for 9.6 2016-06-09 18:02:36 -04:00
Makefile Remove obsolete replacement system() on darwin 2016-08-18 12:00:00 -04:00
posix_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sysv_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
sysv_shmem.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32_sema.c Update copyright for 2016 2016-01-02 13:33:40 -05:00
win32_shmem.c Update copyright for 2016 2016-01-02 13:33:40 -05:00