From 2bd0f37e2bb5300991b2b497b57446a115904ee1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 25 Jun 2020 10:26:34 +0900 Subject: glob_opendir: move cleanup codes at the end Nobu likes this arrangement. --- dir.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dir.c') diff --git a/dir.c b/dir.c index 9c9d40df85..957110823b 100644 --- a/dir.c +++ b/dir.c @@ -2225,12 +2225,12 @@ glob_opendir(ruby_glob_entries_t *ent, DIR *dirp, int flags, rb_encoding *enc) ruby_qsort(ent->sort.entries, ent->sort.count, sizeof(ent->sort.entries[0]), glob_sort_cmp, NULL); return ent; - - nomem: - glob_dir_finish(ent, 0); - closedir(dirp); - return NULL; } + + nomem: + glob_dir_finish(ent, 0); + closedir(dirp); + return NULL; } static rb_dirent_t * -- cgit v1.2.1