]> 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:52 +0000 (16:05 +0300)
commitdb7e953adde14689e885659b5c20037f98eaf294
tree2334217ed3eee50fa42f5ee494258e96b0d06289
parent769c36ad1c565a7ad5d0a36ff450ef591f0dd150
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