8000 Merge pull request #20347 from anntzer/pg · matplotlib/matplotlib@a56da4a · GitHub
[go: up one dir, main page]

Skip to content

Commit a56da4a

Browse files
authored
Merge pull request #20347 from anntzer/pg
Fix possible refleak in PathGenerator.
2 parents bcc1ce8 + 4646515 commit a56da4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/py_adaptors.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ class PathGenerator
212212
return 0;
213213
}
214214

215+
Py_XDECREF(m_paths);
215216
m_paths = obj;
216217
Py_INCREF(m_paths);
217218

0 commit comments

Comments
 (0)
0