Commit e192426
committed
rtc: don't put ffi_drop_handle side effect inside assert
With python -O asserts are stripped, which would skip the drop and leak
the native handle. Call drop_handle unconditionally and assert the result
separately.1 parent 5472a7c commit e192426
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments