Skip to content

Commit

Permalink
Cull: add code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Dec 5, 2024
1 parent b9d0a9a commit 2a6551d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cull.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ Cull::CullFileOperation::OnChdir(SharedLease lease) noexcept
break;
}

/* explicitly release the Chdir lease before invoking the
OperationFinished callback because that callback may
destruct the Chdir instance */
lease = {};

cull.OperationFinished(*this);
}

Expand Down

0 comments on commit 2a6551d

Please sign in to comment.