Skip to content

Commit 70bc6db

Browse files
jessvalarezocrosbymichael
authored andcommitted
rootfs: remove upper snapshot after use
Signed-off-by: Jess Valarezo <[email protected]>
1 parent a1a9bda commit 70bc6db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rootfs/diff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func Diff(ctx context.Context, snapshotID string, sn snapshots.Snapshotter, d di
3939
if err != nil {
4040
return ocispec.Descriptor{}, err
4141
}
42-
defer sn.Remove(ctx, lowerKey)
42+
defer sn.Remove(ctx, upperKey)
4343
}
4444

4545
return d.DiffMounts(ctx, lower, upper, opts...)

0 commit comments

Comments
 (0)