Skip to content

Commit

Permalink
fix the memory leak in fixedpool (pyca#9272)
Browse files Browse the repository at this point in the history
* fix the memory leak in fixedpool

fixes pyca#9255

* simplify fix
  • Loading branch information
reaperhulk committed Jul 29, 2023
1 parent 7431db7 commit ec7c540
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rust/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ impl FixedPool {
})
}
}

fn __traverse__(&self, visit: pyo3::PyVisit<'_>) -> Result<(), pyo3::PyTraverseError> {
visit.call(&self.create_fn)?;
Ok(())
}
}

#[pyo3::pymethods]
Expand Down

0 comments on commit ec7c540

Please sign in to comment.