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

From Alvaro Herrera
Subject Re: BUG #4494: Memory leak in pg_regress.c
Date
Msg-id 20081104164419.GF3958@alvh.no-ip.org
Whole thread Raw
In response to Re: BUG #4494: Memory leak in pg_regress.c  (Zdenek Kotala <Zdenek.Kotala@Sun.COM>)
Responses Re: BUG #4494: Memory leak in pg_regress.c
List pgsql-bugs
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?

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

pgsql-bugs by date:

Previous
From: "Dave Page"
Date:
Subject: Re: Behavior change of FK info query
Next
From: Jeff
Date:
Subject: plperl & sort