diff options
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index e9457582810a..52608ac2a016 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -1246,7 +1246,7 @@ std::unique_ptr<InterruptCallback> createInterruptCallback(std::function<void()> res->it = interruptCallbacks->end(); res->it--; - return res; + return std::unique_ptr<InterruptCallback>(res.release()); } } |