Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3e67a5c

Browse files
author
Amit Kapila
committed
Remove some useless free calls.
These were introduced in recent commit 52e4f0c. 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
1 parent 0f79caa commit 3e67a5c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/backend/commands/publicationcmds.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,6 @@ contain_invalid_rfcolumn(Oid pubid, Relation relation, List *ancestors,
409409
context.bms_replident = bms;
410410
rfnode = stringToNode(TextDatumGetCString(rfdatum));
411411
result = contain_invalid_rfcolumn_walker(rfnode, &context);
412-
413-
bms_free(bms);
414-
pfree(rfnode);
415412
}
416413

417414
ReleaseSysCache(rftuple);
@@ -1182,9 +1179,6 @@ AlterPublicationTables(AlterPublicationStmt *stmt, HeapTuple tup,
11821179
}
11831180
}
11841181

1185-
if (oldrelwhereclause)
1186-
pfree(oldrelwhereclause);
1187-
11881182
/*
11891183
* Add the non-matched relations to a list so that they can be
11901184
* dropped.

0 commit comments

Comments
 (0)