BUG #4493: Memory leak in informix.c

Поиск
Список
Период
Сортировка
От
Тема BUG #4493: Memory leak in informix.c
Дата
Msg-id 200810242004.m9OK4OfL098056@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #4493: Memory leak in informix.c  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      4493
Logged by:
Email address:      dvice_null@yahoo.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;
        }

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Zdenek Kotala
Дата:
Сообщение: Re: Upgrade from 7.4.5 to 8.3.3
Следующее
От: ""
Дата:
Сообщение: BUG #4494: Memory leak in pg_regress.c