Fix incorrect placement of pfree() in pg_relation_check_pages()
authorMichael Paquier <michael@paquier.xyz>
Thu, 29 Oct 2020 00:17:34 +0000 (09:17 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Oct 2020 00:17:34 +0000 (09:17 +0900)
commit60a51c6b32960822d3987ea7d2816c65bdbcb314
tree05601fbb1f46b983f54c1e2c1c65b5f0a3dfb657
parentb787d4ce6d910080065025bcd5f968544997271f
Fix incorrect placement of pfree() in pg_relation_check_pages()

This would cause the function to crash when more than one page is
considered as broken and reported in the SRF.

Reported-by: Noriyoshi Shinoda
Discussion: https://postgr.es/m/TU4PR8401MB11523D42C315AAF822E74275EE170@TU4PR8401MB1152.NAMPRD84.PROD.OUTLOOK.COM
src/backend/utils/adt/pagefuncs.c