This routine was calling ecpg_alloc to allocate to memory but did not
authorMichael Meskes <meskes@postgresql.org>
Thu, 5 Feb 2015 14:12:34 +0000 (15:12 +0100)
committerMichael Meskes <meskes@postgresql.org>
Thu, 5 Feb 2015 14:12:34 +0000 (15:12 +0100)
commit5ee5bc387319b9ac33083bacebd3ab7046666328
treee91d18d6b121852c795ef1c90ba40087be3c3f71
parentd88976cfa1302e8dccdcbfe55e9e29faee8c0cdf
This routine was calling ecpg_alloc to allocate to memory but did not
actually check the returned pointer allocated, potentially NULL which
could be the result of a malloc call.

Issue noted by Coverity, fixed by Michael Paquier <michael@otacoo.com>
src/interfaces/ecpg/ecpglib/descriptor.c
src/interfaces/ecpg/ecpglib/execute.c
src/interfaces/ecpg/ecpglib/extern.h
src/interfaces/ecpg/ecpglib/memory.c