Put closedir call in correct location

This commit is contained in:
Ian Barwick
2019-03-28 12:08:42 +09:00
parent 1e1c596446
commit 03cd5a6028

View File

@@ -2786,6 +2786,7 @@ _do_node_archive_config(void)
arcdir = opendir(archive_dir.data);
/* always attempt to open the directory */
if (arcdir == NULL)
{
log_error(_("unable to open archive directory \"%s\""),
@@ -2831,10 +2832,11 @@ _do_node_archive_config(void)
termPQExpBuffer(&arcdir_ent_path);
}
closedir(arcdir);
}
closedir(arcdir);
/*
* extract list of config files from --config-files
*/