Skip to content

Commit ec7c540

Browse files
committed
fix the memory leak in fixedpool (pyca#9272)
* fix the memory leak in fixedpool fixes pyca#9255 * simplify fix
1 parent 7431db7 commit ec7c540

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rust/src/pool.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ impl FixedPool {
5252
})
5353
}
5454
}
55+
56+
fn __traverse__(&self, visit: pyo3::PyVisit<'_>) -> Result<(), pyo3::PyTraverseError> {
57+
visit.call(&self.create_fn)?;
58+
Ok(())
59+
}
5560
}
5661

5762
#[pyo3::pymethods]

0 commit comments

Comments
 (0)