8000 Add missing Py_DECREF to quiver() · whutph/matplotlib-cpp@3d555d2 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 0 deletions
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)
0