Commit c596e9e
authored
fix(query_cursor): fix reference leak in progress callback
query_cursor_progress_callback() leaked the Python callback's return
value since PyObject_IsTrue() reads the object but does not consume
the reference. The result is decref'd after computing the truth value.1 parent 4f8872d commit c596e9e
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| |||
0 commit comments