python - be: Only pfree when recoding occurs.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - be: Only pfree when recoding occurs.
Date: 2007-05-26 17:54:21
Message-ID: 20070526175421.DA6ED21707E@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Only pfree when recoding occurs.

This caused a double pfree when the server's encoding is ASCII. ASCII being a
compatible subset of utf-8, no transformation is necessary, so the function
simply returned the source.

Modified Files:
--------------
be/src:
pl.c (r1.46 -> r1.47)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/be/src/pl.c.diff?r1=1.46&r2=1.47)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-05-26 18:23:02 pgsql: Repair two constraint-exclusion corner cases triggered by proving
Previous Message Tom Lane 2007-05-25 17:54:25 pgsql: Create hooks to let a loadable plugin monitor (or even replace)