Skip to content

Commit

Permalink
CLJ-2297: Fix BitmapNode#without(Object) memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchy64 committed Aug 23, 2024
1 parent 29e3a00 commit 18d7847
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/com/ambrosebs/map.clj
Original file line number Diff line number Diff line change
Expand Up @@ -385,15 +385,16 @@
idx))))

(= key key-or-null)
;; TODO: collapse - rhickey
(bitmap-indexed-node-ctor
(if (identical? bitmap bit)
nil
(bit-xor
bitmap
bit)
(remove-pair
array
idx))
(bitmap-indexed-node-ctor
nil
(bit-xor
bitmap
bit)
(remove-pair
array
idx)))

:else this)))))
(find-node
Expand Down

0 comments on commit 18d7847

Please sign in to comment.