From: | "" <dvice_null(at)yahoo(dot)com> |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #4493: Memory leak in informix.c |
Date: | 2008-10-24 20:04:24 |
Message-ID: | 200810242004.m9OK4OfL098056@wwwmaster.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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;
}
From | Date | Subject | |
---|---|---|---|
Next Message | dvice_null | 2008-10-24 20:10:38 | BUG #4494: Memory leak in pg_regress.c |
Previous Message | Zdenek Kotala | 2008-10-24 10:51:52 | Re: Upgrade from 7.4.5 to 8.3.3 |