]> granicus.if.org Git - postgresql/commit
Plug memory leak in range_cmp function.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 25 Sep 2013 13:02:00 +0000 (16:02 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 25 Sep 2013 13:05:24 +0000 (16:05 +0300)
commit33936752829e3c6d4c463f3c974968b225304571
tree271e9c9463660922ac05a4f13d6399c19ed4b7cb
parentea9a2bcea3a3372b7f296b1095aeebf65c27f32a
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.
src/backend/utils/adt/rangetypes.c