From ce948751733a36c36e87a30f523933e0004677fd Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 27 Sep 2012 15:00:09 -0700 Subject: [PATCH] rgw: fix (im)possible leak Fixes coverity issue Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_tools.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_tools.cc b/src/rgw/rgw_tools.cc index baa22a2895ede..4201bd42d06e9 100644 --- a/src/rgw/rgw_tools.cc +++ b/src/rgw/rgw_tools.cc @@ -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); } -- 2.39.5