From: Yehuda Sadeh Date: Thu, 27 Sep 2012 22:00:09 +0000 (-0700) Subject: rgw: fix (im)possible leak X-Git-Tag: v0.54~83^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce948751733a36c36e87a30f523933e0004677fd;p=ceph.git rgw: fix (im)possible leak Fixes coverity issue Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_tools.cc b/src/rgw/rgw_tools.cc index baa22a2895ed..4201bd42d06e 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); }