Skip to content

Commit

Permalink
Fix small memory leak tied to owner cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Mar 10, 2024
1 parent e0a3025 commit baa3c76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/nimble_ownership.ex
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ defmodule NimbleOwnership do

defp pop_owner_and_clean_up_allowances(state, target_pid) do
{_, state} = pop_in(state.owners[target_pid])
{_, state} = pop_in(state.owner_cleanup[target_pid])

allowances =
Enum.reduce(state.allowances, state.allowances, fn {pid, allowances}, acc ->
Expand Down

0 comments on commit baa3c76

Please sign in to comment.