Add missing FreeDir in CheckTablespaceDirectory - Mailing list pgsql-hackers

From Chao Li
Subject Add missing FreeDir in CheckTablespaceDirectory
Date
Msg-id 66A784B7-55C1-4613-8C24-B4C2A8D75414@gmail.com
Whole thread
Responses Re: Add missing FreeDir in CheckTablespaceDirectory
List pgsql-hackers
Hi,

While reviewing another patch, I spotted that CheckTablespaceDirectory() in xlogrecovery.c misses to call FreeDir()
afterAllocateDir(). 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/





Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: docs: Table 9.46. UUID Extraction Functions
Next
From: Xuneng Zhou
Date:
Subject: Re: Deadlock detector fails to activate on a hot standby replica