mirror of
https://github.com/ceph/ceph
synced 2025-02-08 03:18:12 +00:00
rgw: fix (im)possible leak
Fixes coverity issue Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
79b15a2658
commit
ce94875173
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user