close directory handle after checking mountpoint

running s3fs through several valgrind checks found a bug in s3fs_check_service()


git-svn-id: http://s3fs.googlecode.com/svn/trunk@361 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
ben.lemasurier@gmail.com 2011-08-25 17:11:25 +00:00
parent f29986f4c6
commit 979ed21d5a

View File

@ -3281,11 +3281,13 @@ static void s3fs_check_service(void) {
string content = reinterpret_cast<const char *>(cur_node->children->content);
fprintf (stderr, "%s: AWS Error Code: %s\n", program_name.c_str(), content.c_str());
}
if (cur_node_name == "Message") {
string content = reinterpret_cast<const char *>(cur_node->children->content);
fprintf (stderr, "%s: AWS Message: %s\n", program_name.c_str(), content.c_str());
}
}
xmlFreeDoc(doc);
exit(EXIT_FAILURE);
}
@ -3950,6 +3952,8 @@ static int my_fuse_opt_proc(void *data, const char *arg, int key, struct fuse_ar
exit(EXIT_FAILURE);
}
}
closedir(dp);
}
if (key == FUSE_OPT_KEY_OPT) {