diff --git a/src/statement.cc b/src/statement.cc index 2d6daa41..33319b4e 100644 --- a/src/statement.cc +++ b/src/statement.cc @@ -934,8 +934,5 @@ void Statement::CleanQueue() { // preparing the statement failed. auto call = std::unique_ptr(queue.front()); queue.pop(); - // We don't call the actual callback, so we have to make sure that - // the baton gets destroyed. - delete call->baton; } }