The following bug has been logged online:
Bug reference: 4493
Logged by:
Email address: dvice_null(at)yahoo(dot)com
PostgreSQL version: Latest cvs
Operating system: Error in source code
Description: Memory leak in informix.c
Details:
In file src/interfaces/ecpg/compatlib/informix.c:763
It seems to me that variable "temp" leaks memory here if initValue() fails:
temp = (char *) malloc(fmt_len + 1);
/* put all info about the long in a struct */
if (!temp || initValue(lng_val) == -1)
{
errno = ENOMEM;
return -1;
}