From: Henry C Chang Date: Mon, 23 Aug 2010 10:23:39 +0000 (+0800) Subject: common: close fd after parsed config file X-Git-Tag: v0.21.3~24 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ad40652bdc2a24de4da00dbf7451b6aca04c1754;p=ceph.git common: close fd after parsed config file Signed-off-by: Sage Weil --- diff --git a/src/common/ConfUtils.cc b/src/common/ConfUtils.cc index 80cd9a487a24..106cc3e3acc6 100644 --- a/src/common/ConfUtils.cc +++ b/src/common/ConfUtils.cc @@ -662,7 +662,7 @@ bool ConfFile::_parse(char *filename, ConfSection **psection) free(buf); *psection = section; - + close(fd); free(line); return 1;