]> 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:57:15 +0000 (13:57 -0800)
src/rgw/rgw_rados.cc

index d6b711f4a1f313b896bd620bd1559384fa8cc9ff..c960af5fc069008ad65ac22aa8d411303871a43e 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: