Add missing FreeDir in CheckTablespaceDirectory
Add missing FreeDir in CheckTablespaceDirectory
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/
Re: Add missing FreeDir in CheckTablespaceDirectory
От:
Fujii Masao <masao.fujii@gmail.com>
Дата:
On Sat, Oct 10, 2026 at 6:09 PM Chao Li wrote: > > 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. Thanks for the patch! LGTM. I'll apply it next week. Regards, -- Fujii Masao
Re: Add missing FreeDir in CheckTablespaceDirectory
От:
Fujii Masao <masao.fujii@gmail.com>
Дата:
On Sun, Oct 11, 2026 at 1:05 AM Fujii Masao wrote: > Thanks for the patch! LGTM. I'll apply it next week. I've pushed the patch. Thanks! Regards, -- Fujii Masao
Re: Add missing FreeDir in CheckTablespaceDirectory
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
> On Oct 14, 2026, at 10:17, Fujii Masao wrote: > > On Sun, Oct 11, 2026 at 1:05 AM Fujii Masao wrote: >> Thanks for the patch! LGTM. I'll apply it next week. > > I've pushed the patch. Thanks! > > Regards, > > -- > Fujii Masao Thanks a lot for pushing. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/