From 59fbbbaaa59329e99fbc14a0377a88480620863d Mon Sep 17 00:00:00 2001 From: jasper Date: Mon, 28 May 2007 21:11:39 +0000 Subject: add two missing closedir()'s from Antti Nykänen via bernd@ ok pedro@ --- conf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index e3ca7b6..8749652 100644 --- a/conf.c +++ b/conf.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen * All rights reserved. * - * $Id: conf.c,v 1.4 2007/05/28 18:34:27 jasper Exp $ + * $Id: conf.c,v 1.5 2007/05/28 21:11:39 jasper Exp $ */ #include "headers.h" @@ -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); + } -- cgit v1.2.3-2-gb3c3