From 5c7421c833b1e64fe2d159bd0fa1355ae9c833bd Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Fri, 15 Feb 2019 18:24:36 +0200 Subject: [PATCH] minor valgrind fixes --- src/laminar.cpp | 4 ++-- src/run.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/laminar.cpp b/src/laminar.cpp index b5e4165..9de858a 100644 --- a/src/laminar.cpp +++ b/src/laminar.cpp @@ -645,8 +645,8 @@ bool Laminar::tryStartRun(std::shared_ptr run, int queueIndex) { }); // Actually schedules the Run steps - kj::Promise exec = handleRunStep(run.get()).then([this,r=run.get()]{ - runFinished(r); + kj::Promise exec = handleRunStep(run.get()).then([=]{ + runFinished(run.get()); }); if(run->timeout > 0) { exec = exec.attach(srv->addTimeout(run->timeout, [r=run.get()](){ diff --git a/src/run.h b/src/run.h index 8ca6b43..eae55d0 100644 --- a/src/run.h +++ b/src/run.h @@ -83,7 +83,7 @@ public: kj::Maybe current_pid; int output_fd; std::unordered_map params; - int timeout; + int timeout = 0; time_t queuedAt; time_t startedAt;