This routine was calling ecpg_alloc to allocate to memory but did not
Michael Meskes <meskes@postgresql.org>
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>
Files
| Path | Change | +/− |
|---|---|---|
| src/interfaces/ecpg/ecpglib/descriptor.c | modified | +2 −4 |
| src/interfaces/ecpg/ecpglib/execute.c | modified | +2 −4 |
| src/interfaces/ecpg/ecpglib/extern.h | modified | +2 −2 |
| src/interfaces/ecpg/ecpglib/memory.c | modified | +21 −1 |