8000 Add missing Py_DECREF in scatter function. · lyz0530/matplotlib-cpp@8baa582 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8baa582

Browse files
author
Benno Evers
committed
Add missing Py_DECREF in scatter function.
1 parent 78719eb commit 8baa582

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
@@ -476,6 +476,7 @@ bool scatter(const std::vector<NumericX>& x,
476476
PyObject* res = PyObject_Call(detail::_interpreter::get().s_python_function_scatter, plot_args, kwargs);
477477

478478
Py_DECREF(plot_args);
479+
Py_DECREF(kwargs);
479480
if(res) Py_DECREF(res);
480481

481482
return res;

0 commit comments

Comments
 (0)
0