]> 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:02:00 +0000 (16:02 +0300)
commit77ae7f7c356064f5355e004b95f485358dfc1360
treebdd420b6d7a82a3dbae163baaccd54b805e6d136
parentb2fc4d6142033e361dee91388d9515be3633763c
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