Commit c8eeff1
committed
[cppyy] Fix memory leak in TemplateProxy::Instantiate()
The `PyObject * exact` is set to be the return value of
`PyObject_GetItem()`, which returns a new reference that needs to be
dereferenced when not used anymore. Otherwise, memory will leak.
This could be a problem in code that uses lots of template
instantiations.1 parent 78a6f80 commit c8eeff1
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| |||
0 commit comments