diff options
author | Amit Kapila <akapila@postgresql.org> | 2022-03-25 07:37:06 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2022-03-25 07:37:06 +0530 |
commit | 3e67a5cac6a50139bd29b96ab97496dbc1543d92 (patch) | |
tree | ce533acf5e6715822cb8f9fe1cd27751544144e0 /src | |
parent | 0f79caa3c61e643e6285524f3148a35fb61ddcf3 (diff) | |
download | postgresql-3e67a5cac6a50139bd29b96ab97496dbc1543d92.tar.gz postgresql-3e67a5cac6a50139bd29b96ab97496dbc1543d92.zip |
Remove some useless free calls.
These were introduced in recent commit 52e4f0cd47. We were trying to free
some transient space consumption and that too was not entirely correct and
complete. We don't need this partial freeing of memory as it will be
allocated just once for a query and will be freed at the end of the query.
Author: Zhihong Yu
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CALNJ-vQORfQ=vicbKA_RmeGZGzm1y3WsEcZqXWi7qjN43Cz_vg@mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/commands/publicationcmds.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/backend/commands/publicationcmds.c b/src/backend/commands/publicationcmds.c index f890d3f0baa..c6437799c53 100644 --- a/src/backend/commands/publicationcmds.c +++ b/src/backend/commands/publicationcmds.c @@ -409,9 +409,6 @@ contain_invalid_rfcolumn(Oid pubid, Relation relation, List *ancestors, context.bms_replident = bms; rfnode = stringToNode(TextDatumGetCString(rfdatum)); result = contain_invalid_rfcolumn_walker(rfnode, &context); - - bms_free(bms); - pfree(rfnode); } ReleaseSysCache(rftuple); @@ -1182,9 +1179,6 @@ AlterPublicationTables(AlterPublicationStmt *stmt, HeapTuple tup, } } - if (oldrelwhereclause) - pfree(oldrelwhereclause); - /* * Add the non-matched relations to a list so that they can be * dropped. |