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

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 (view raw or flat)
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

pgsql-bugs by date

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

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