libpq was not consistently checking for memory allocation failures. This
authorNeil Conway <neilc@samurai.com>
Sun, 12 Jun 2005 00:00:21 +0000 (00:00 +0000)
committerNeil Conway <neilc@samurai.com>
Sun, 12 Jun 2005 00:00:21 +0000 (00:00 +0000)
commit72a5db15d190121e63126055824f38dd062428be
tree82e9ec66aca79f9e213da819b3231664a6363b63
parent2f1210629cf357fd0b6035e47ef10f240c82f6d5
libpq was not consistently checking for memory allocation failures. This
patch adds missing checks to the call sites of malloc(), strdup(),
PQmakeEmptyPGresult(), pqResultAlloc(), and pqResultStrdup(), and updates
the documentation. Per original report from Volkan Yazici about
PQmakeEmptyPGresult() not checking for malloc() failure.
doc/src/sgml/libpq.sgml
src/interfaces/libpq/fe-connect.c
src/interfaces/libpq/fe-exec.c
src/interfaces/libpq/fe-misc.c
src/interfaces/libpq/fe-print.c
src/interfaces/libpq/fe-protocol2.c
src/interfaces/libpq/fe-protocol3.c
src/interfaces/libpq/libpq-int.h