aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.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:15 +0200
commit6cf639dfbddbc44d027730ad1504886312bc905a (patch)
treeaea17370c0325c034b0131b2482508a60309dc8e /src/tutorial/funcs.c
parente45057e0a7c4f5c6f1d662853c616eea26e9b0e4 (diff)
downloadpostgresql-6cf639dfbddbc44d027730ad1504886312bc905a.tar.gz
postgresql-6cf639dfbddbc44d027730ad1504886312bc905a.zip
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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions