pgsql: Plug memory leak in range_cmp function.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Plug memory leak in range_cmp function.
Date: 2013-09-25 13:11:36
Message-ID: E1VOosS-0003Lf-9i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Plug memory leak in range_cmp function.

B-tree operators are not allowed to leak memory into the current memory
context. Range_cmp leaked detoasted copies of the arguments. That caused
a quick out-of-memory error when creating an index on a range column.

Reported by Marian Krucina, bug #8468.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/db7e953adde14689e885659b5c20037f98eaf294

Modified Files
--------------
src/backend/utils/adt/rangetypes.c | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Noah Misch 2013-09-26 03:12:30 pgsql: pgbench: Correct for bias in --rate schedule generation.
Previous Message Alvaro Herrera 2013-09-24 21:24:22 pgsql: Fix pgindent comment breakage