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

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Alvaro Herrera <alvherre(at)commandprompt(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-10 12:31:50
Message-ID: 491829B6.2090800@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Alvaro Herrera napsal(a):
> 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?

I will do that. Still on my TODO.

Zdenek

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Hiroshi Saito 2008-11-10 14:39:32 Re: Bug fix request for 08.03.0400 ( was [BUGS] Behavior change of FK info query)
Previous Message Andrew Gierth 2008-11-10 10:13:03 Re: BUG #4516: FOUND variable does not work after RETURN QUERY