about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--conf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.c b/conf.c
index 065d6bc..48c44df 100644
--- a/conf.c
+++ b/conf.c
@@ -149,6 +149,9 @@ conf_cmd_populate(struct conf *c, char *path)
 		/* Add a dynamic entry to the command menu */
 		conf_cmd_add(c, fullname, filename, 0);
 	}
+
+	closedir(dir);
+
 }
 
 void
@@ -531,4 +534,7 @@ conf_parseautogroups(struct conf *c, char *filename)
 
 		TAILQ_INSERT_TAIL(&c->autogroupq, aw, entry);
 	}
+
+	closedir(dir);
+
 }