diff --git a/src/backend/access/transam/xlogrecovery.c b/src/backend/access/transam/xlogrecovery.c index d89af5356ad..16185ba1840 100644 --- a/src/backend/access/transam/xlogrecovery.c +++ b/src/backend/access/transam/xlogrecovery.c @@ -2180,6 +2180,7 @@ CheckTablespaceDirectory(void) errdetail("All directory entries in pg_tblspc/ should be symbolic links."), errhint("Remove those directories, or set \"allow_in_place_tablespaces\" to ON transiently to let recovery complete."))); } + FreeDir(dir); } /*