Skip to content

Commit fa403dc

Browse files
Peter Smithhackorum
authored andcommitted
Remove unnecessary list_free
1 parent 086f6f1 commit fa403dc

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/backend/commands/publicationcmds.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,8 +1977,11 @@ OpenTableList(List *tables)
19771977
}
19781978
}
19791979

1980-
list_free(relids);
1981-
list_free(relids_with_rf);
1980+
/*
1981+
* No need to free the Lists here -- this function runs at most once per
1982+
* DDL command, and the memory will be reclaimed when that command's
1983+
* context is torn down.
1984+
*/
19821985

19831986
return rels;
19841987
}

0 commit comments

Comments
 (0)