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

Skip to content

Commit 3d555d2

Browse files
alexdewarlava
authored andcommitted
Add missing Py_DECREF to quiver()
1 parent 00a4766 commit 3d555d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

matplotlibcpp.h

+1
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ bool quiver(const std::vector<NumericX>& x, const std::vector<NumericY>& y, cons
511511
PyObject* res = PyObject_Call(
512512
detail::_interpreter::get().s_python_function_quiver, plot_args, kwargs);
513513

514+
Py_DECREF(kwargs);
514515
Py_DECREF(plot_args);
515516
if (res)
516517
Py_DECREF(res);

0 commit comments

Comments
 (0)