Fix a few places that were checking for the return value of palloc() to be
Neil Conway <neilc@samurai.com>
Fix a few places that were checking for the return value of palloc() to be non-NULL: palloc() ereports on OOM, so we can safely assume it returns a valid pointer.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/chkpass/chkpass.c | modified | +7 −11 |
| contrib/fuzzystrmatch/fuzzystrmatch.c | modified | +1 −5 |
| src/backend/utils/adt/cash.c | modified | +3 −10 |
| src/pl/plperl/plperl.c | modified | +1 −5 |
| src/pl/plperl/SPI.xs | modified | +0 −6 |