summaryrefslogtreecommitdiff
path: root/src/backend/executor/spi.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-12 09:49:47 +0200
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2011-12-12 10:05:24 +0200
commit6c0a375adf9b27fbb8cab8d5cae5dc6b58ea6b24 (patch)
tree190aa6ed092e7a9dabe0731eae8f617081c6fdbb /src/backend/executor/spi.c
parent94b18c60c7a52452356bb49a04c1495083ea67f6 (diff)
Revert the behavior of inet/cidr functions to not unpack the arguments.
I forgot to change the functions to use the PG_GETARG_INET_PP() macro, when I changed DatumGetInetP() to unpack the datum, like Datum*P macros usually do. Also, I screwed up the definition of the PG_GETARG_INET_PP() macro, and didn't notice because it wasn't used. This fixes the memory leak when sorting inet values, as reported by Jochen Erwied and debugged by Andres Freund. Backpatch to 8.3, like the previous patch that broke it.
Diffstat (limited to 'src/backend/executor/spi.c')
0 files changed, 0 insertions, 0 deletions