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

Re: Patch to fix memory leak in fetch in Python interface.

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Stephen Robert Norris <srn(at)commsecure(dot)com(dot)au>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Patch to fix memory leak in fetch in Python interface.
Date: 2001-10-19 15:00:08
Message-ID: 200110191500.f9JF08E28743@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Patch applied.  Thanks.

---------------------------------------------------------------------------



Checking application/pgp-signature: FAILURE
-- Start of PGP signed section.
> On Thu, 2001-10-18 at 08:46, Stephen Robert Norris wrote:
> > This stops the interface from leaking the row tuples (and thus the
> > results of every fetch).
> > 
> > 	Stephen
> 
> Of course, I screwed up the patch. This one is actually correct, I
> think:
> 
> --- /root/pgmodule.c	Thu Oct 18 08:47:02 2001
> +++ pgmodule.c	Thu Oct 18 08:47:25 2001
> @@ -566,6 +566,7 @@
>  		}
>  
>  		PyList_Append(reslist, rowtuple);
> +		Py_DECREF(rowtuple);
>  		self->current_row++;
>  	}
>  
-- End of PGP section, PGP failed!

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-10-20 09:28:01
Subject: Re: [PATCHES] Ant configuration
Previous:From: Bruce MomjianDate: 2001-10-19 14:59:06
Subject: Re: [PATCHES] Ant configuration

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