Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit abb1dc9

Browse files
committed
Add missing DECREF
1 parent de53bb3 commit abb1dc9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/_path.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ _path_module::points_in_path(const Py::Tuple& args)
376376
PyArray_STRIDE(points_array, 1),
377377
n, r, path, trans,
378378
(npy_bool *)PyArray_DATA(result));
379+
Py_DECREF(points_array);
380+
379381
return Py::Object(result, true);;
380382
}
381383

0 commit comments

Comments
 (0)