]> git.mdlowis.com Git - proto/labwc.git/commitdiff
session: Don't close a null dir in read_environment_dir
authorScarcely There <aelystareia@aim.com>
Wed, 13 Mar 2024 05:22:49 +0000 (00:22 -0500)
committerAndrew J. Hesford <ajh@sideband.org>
Wed, 13 Mar 2024 14:36:55 +0000 (10:36 -0400)
Closes: #1615 [via git-merge-pr]
src/config/session.c

index f97dd813c23305068e9b7271adeb7b39f19a6f0a..ee56b548991c6d169c9cb111e8b4000e91392bdf 100644 (file)
@@ -140,8 +140,9 @@ read_environment_dir(const char *path_prefix)
                free(env_file_path);
        }
 
-env_dir_cleanup:
        closedir(envdir);
+
+env_dir_cleanup:
        free(path);
        return success;
 }