Put closedir call in correct location

This commit is contained in:
Ian Barwick
2019-03-28 12:08:42 +09:00
parent d9947a46e8
commit f23a93e12d

View File

@@ -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
*/ */