Skip to content

Commit

Permalink
fix(iterator): null conditional dispose (#401)
Browse files Browse the repository at this point in the history
Co-authored-by: Stephan Kempkes <stephan.kempkes@esrlabs.com>
  • Loading branch information
stephankempkes and Stephan Kempkes authored Feb 9, 2021
1 parent 0549188 commit 265d40c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cs/src/core/Index/FASTER/FASTERIterator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ public FasterKVIterator(FasterKV<Key, Value> fht, Functions functions, Compactio

public void Dispose()
{
iter1.Dispose();
iter2.Dispose();
fhtSession.Dispose();
tempKvSession.Dispose();
tempKv.Dispose();
iter1?.Dispose();
iter2?.Dispose();
fhtSession?.Dispose();
tempKvSession?.Dispose();
tempKv?.Dispose();
}

public ref Key GetKey()
Expand Down

0 comments on commit 265d40c

Please sign in to comment.