rgw: fix (im)possible leak

Fixes coverity issue

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2012-09-27 15:00:09 -07:00
parent 79b15a2658
commit ce94875173

View File

@ -130,6 +130,7 @@ static int ext_mime_map_init(CephContext *cct, const char *ext_map)
if (ret != st.st_size) {
// huh? file size has changed, what are the odds?
ldout(cct, 0) << "ext_mime_map_init(): raced! will retry.." << dendl;
free(buf);
close(fd);
return ext_mime_map_init(cct, ext_map);
}