Re: BUG #4494: Memory leak in pg_regress.c - Mailing list pgsql-bugs

From Zdenek Kotala
Subject Re: BUG #4494: Memory leak in pg_regress.c
Date
Msg-id 491829B6.2090800@sun.com
Whole thread Raw
In response to Re: BUG #4494: Memory leak in pg_regress.c  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-bugs
Alvaro Herrera napsal(a):
> Zdenek Kotala wrote:
>> dvice_null@yahoo.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

pgsql-bugs by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: BUG #4516: FOUND variable does not work after RETURN QUERY
Next
From: "Shawn Chasse"
Date:
Subject: BUG #4519: deadlock on commit