Skip site navigation (1) Skip section navigation (2)

BUG #4493: Memory leak in informix.c

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: (view raw, whole thread or download thread mbox)
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

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 by date

Next:From: dvice_nullDate: 2008-10-24 20:10:38
Subject: BUG #4494: Memory leak in pg_regress.c
Previous:From: Zdenek KotalaDate: 2008-10-24 10:51:52
Subject: Re: Upgrade from 7.4.5 to 8.3.3

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group