From: oetiker Date: Fri, 14 Jul 2006 12:06:09 +0000 (+0000) Subject: we were leaking directory handles ... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34a17212fd05a6ef5057395554ade79068890872;p=rrdtool-all.git we were leaking directory handles ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@859 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c index b87c39b5..f7ce3349 100644 --- a/program/src/rrd_tool.c +++ b/program/src/rrd_tool.c @@ -545,6 +545,7 @@ int HandleInputLine(int argc, char **argv, FILE* out) } } } + closedir(curdir); } else{ printf("ERROR: %s\n",rrd_strerror(errno));