pgoutput: Fix memory leak due to RelationSyncEntry.map. Release memory allocated when creating the tuple-conversion map and its component TupleDescs when its owning sync entry is invalidated. TupleDescs must also be freed when no map is deemed necessary, to begin with.
Reported-by: Andres Freund Author: Amit Langote Reviewed-by: Takamichi Osumi, Amit Kapila Backpatch-through: 13, where it was introduced Discussion: https://postgr.es/m/meyp282mb166933b1ab02b4fe56e82453b6...@meyp282mb1669.ausp282.prod.outlook.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/eb89cb43a0d0e401e71b8e2345b5f5bc8b2755a1 Modified Files -------------- src/backend/replication/pgoutput/pgoutput.c | 46 ++++++++++++++++++++++++----- src/test/subscription/t/013_partition.pl | 28 +++++++++++++++++- 2 files changed, 65 insertions(+), 9 deletions(-)
