]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common: close fd after parsed config file
authorHenry C Chang <henry_c_chang@tcloudcomputing.com>
Mon, 23 Aug 2010 10:23:39 +0000 (18:23 +0800)
committerSage Weil <sage@newdream.net>
Thu, 9 Sep 2010 22:18:47 +0000 (15:18 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/common/ConfUtils.cc

index 80cd9a487a24448798f833e12fa843cda36082c1..106cc3e3acc69ee5eb7ecfe08e4c26e031a71fd7 100644 (file)
@@ -662,7 +662,7 @@ bool ConfFile::_parse(char *filename, ConfSection **psection)
        free(buf);
 
        *psection = section;
-
+       close(fd);
        free(line);
 
        return 1;