mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Put closedir call in correct location
This commit is contained in:
@@ -2786,6 +2786,7 @@ _do_node_archive_config(void)
|
|||||||
|
|
||||||
arcdir = opendir(archive_dir.data);
|
arcdir = opendir(archive_dir.data);
|
||||||
|
|
||||||
|
/* always attempt to open the directory */
|
||||||
if (arcdir == NULL)
|
if (arcdir == NULL)
|
||||||
{
|
{
|
||||||
log_error(_("unable to open archive directory \"%s\""),
|
log_error(_("unable to open archive directory \"%s\""),
|
||||||
@@ -2831,10 +2832,11 @@ _do_node_archive_config(void)
|
|||||||
|
|
||||||
termPQExpBuffer(&arcdir_ent_path);
|
termPQExpBuffer(&arcdir_ent_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
closedir(arcdir);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
closedir(arcdir);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* extract list of config files from --config-files
|
* extract list of config files from --config-files
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user