Skip to content

Commit 85c7cf4

Browse files
authored
Demonitor on Parameters delete to stop monitor leak (#781)
1 parent 313d6c9 commit 85c7cf4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/postgrex/parameters.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ defmodule Postgrex.Parameters do
6060
end
6161

6262
def handle_cast({:delete, ref}, state) do
63+
Process.demonitor(ref, [:flush])
6364
:ets.delete(state, ref)
6465
{:noreply, state}
6566
end

0 commit comments

Comments
 (0)