Hi, While reviewing another patch, I spotted that CheckTablespaceDirectory() in xlogrecovery.c misses to call FreeDir() after AllocateDir(). This seems to be an oversight in 9e4f914b5eba, where CheckTablespaceDirectory() was introduced.
Then I searched the source tree and didn’t find any other occurrences. Attached is a quick fix that adds the missing FreeDir(). Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
v1-0001-Add-missing-FreeDir-in-CheckTablespaceDirectory.patch
Description: Binary data
