Plug memory leak in range_cmp function.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 77ae7f7c356064f5355e004b95f485358dfc1360
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2013-09-25T13:02:00Z
Releases: 9.4.0
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.

Files

PathChange+/−
src/backend/utils/adt/rangetypes.c modified +12 −6