diff --git a/src/libstore/build.cc b/src/libstore/build.cc index e2115bc802..cec03fee42 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -2852,6 +2852,7 @@ void SubstitutionGoal::finished() worker.store.registerValidPath(info2); outputLock->setDeletion(true); + outputLock.reset(); worker.store.markContentsGood(storePath);