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.