]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rados tool: close dir after reading through
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 14 Mar 2011 23:13:29 +0000 (16:13 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 14 Mar 2011 23:13:29 +0000 (16:13 -0700)
src/rados.cc

index 09038317667955ea63e5d24fcd90953c2ac1b97a..b3a6a5fe7a36915c5a28a96f9b60de01a919d848 100644 (file)
@@ -184,6 +184,7 @@ static int import_dir(IoCtx& io_ctx, string path, const char *name, int prefix_l
 next:
     dent = readdir(dir);
   }
+  closedir(dir);
   return 0;
 }