Re: BUG #4494: Memory leak in pg_regress.c

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
Cc: dvice_null(at)yahoo(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4494: Memory leak in pg_regress.c
Date: 2008-11-04 16:44:19
Message-ID: 20081104164419.GF3958@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Zdenek Kotala wrote:
> dvice_null(at)yahoo(dot)com napsal(a):

>> In file src/test/regress/pg_regress.c:1112
>>
>> It seems to me that variables "s" and "tmp" leak memory here if last_dot is
>> false:

> OK. It seems as a bug. tmp and s should be freed when strrchr fails. Also
> there is not check when malloc fails.

So who's gonna send the patch?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2008-11-04 18:41:40 Re: plperl & sort
Previous Message Dave Page 2008-11-04 16:39:55 Re: Behavior change of FK info query