Skip to content

Commit 7977b5f

Browse files
committed
Fix leak of input mesh during image resampling.
Fixes #15474.
1 parent 36d4576 commit 7977b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_image_wrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ _get_transform_mesh(PyObject *py_affine, npy_intp *dims)
8585
PyObject *output_mesh =
8686
PyObject_CallMethod(
8787
py_inverse, (char *)"transform", (char *)"O",
88-
(char *)input_mesh.pyobj(), NULL);
88+
(char *)input_mesh.pyobj_steal(), NULL);
8989

9090
Py_DECREF(py_inverse);
9191

0 commit comments

Comments
 (0)