Remove unnecessary pstrdup in fetch_table_list.
authorAmit Kapila <akapila@postgresql.org>
Sat, 16 Jan 2021 04:45:32 +0000 (10:15 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sat, 16 Jan 2021 04:45:32 +0000 (10:15 +0530)
commitc95765f47673b16ed36acbfe98e1242e3c3822a3
treeee3a04ede5c0b52c4db5a28ea75b4212a0d13577
parentc9a0dc34865f2f82d8e186f534d9b605afaa4d11
Remove unnecessary pstrdup in fetch_table_list.

The result of TextDatumGetCString is already palloc'ed so we don't need to
allocate memory for it again. We decide not to backpatch it as there
doesn't seem to be any case where it can create a meaningful leak.

Author: Zhijie Hou
Reviewed-by: Daniel Gustafsson
Discussion: https://postgr.es/m/229fed2eb8c54c71a96ccb99e516eb12@G08CNEXMBPEKD05.g08.fujitsu.local
src/backend/commands/subscriptioncmds.c