]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove temp context in prepare_get_obj
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 19 Dec 2011 21:54:04 +0000 (13:54 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 19 Dec 2011 21:54:04 +0000 (13:54 -0800)
src/rgw/rgw_rados.cc

index 884aa591801311ca72ec083926a62e20eaa6176e..c8b7f5e17f42bc075bd648f29408dc5b2de66506 100644 (file)
@@ -1425,6 +1425,8 @@ int RGWRados::prepare_get_obj(void *ctx, rgw_obj& obj,
   if (lastmod)
     *lastmod = astate->mtime;
 
+  delete new_ctx;
+
   return 0;
 
 done_err: