From 9e2569e2055eef55d4d11fded0966d6d0b561ae1 Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 8 Jan 2016 11:57:05 -0800 Subject: [PATCH] rgw: clear stack ops when unwinding last op So that we don't drop the last one's reference twice Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_coroutine.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_coroutine.cc b/src/rgw/rgw_coroutine.cc index 62b8c9f4f6c90..4959a893eeafe 100644 --- a/src/rgw/rgw_coroutine.cc +++ b/src/rgw/rgw_coroutine.cc @@ -254,6 +254,7 @@ int RGWCoroutinesStack::unwind(int retcode) if (pos == ops.begin()) { spawned.inherit(src_spawned); + ops.clear(); pos = ops.end(); return retcode; } -- 2.39.5