From df7789cbef7ffa9658c61525edf75bebaa6398ff Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 26 Jun 2024 14:41:18 +0200 Subject: Got double free :/ --- modules/async/c++/async.tmpl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/async/c++/async.tmpl.hpp') diff --git a/modules/async/c++/async.tmpl.hpp b/modules/async/c++/async.tmpl.hpp index 68489ad..7016283 100644 --- a/modules/async/c++/async.tmpl.hpp +++ b/modules/async/c++/async.tmpl.hpp @@ -160,14 +160,14 @@ own conveyor::from_conveyor(conveyor conveyor) { return std::move(conveyor.node_); } -template error_or> conveyor::take() { +template error_or conveyor::take() { SAW_ASSERT(node_) { make_error("conveyor in invalid state"); } conveyor_storage *storage = node_->next_storage(); if (storage) { if (storage->queued() > 0) { - error_or> result; + error_or result; node_->get_result(result); return result; } else { -- cgit v1.2.3