pgsql: Plug memory leak in range_cmp function. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Plug memory leak in range_cmp function.
Date
Msg-id E1VOosS-0003La-6p@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/77ae7f7c356064f5355e004b95f485358dfc1360

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Plug memory leak in range_cmp function.
Next
From: Noah Misch
Date:
Subject: pgsql: pgbench: Correct for bias in --rate schedule generation.