Re: Patch to fix memory leak in fetch in Python interface. - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: Patch to fix memory leak in fetch in Python interface.
Date
Msg-id 200110181624.f9IGOH416013@candle.pha.pa.us
Whole thread Raw
In response to Re: Patch to fix memory leak in fetch in Python interface.  (Stephen Robert Norris <srn@commsecure.com.au>)
List pgsql-patches
Previous version removed.

Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

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



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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Patch to fix memory leak in fetch in Python interface.
Next
From: "Greg Sabino Mullane"
Date:
Subject: Re: Showing index details with \d on psql