Commit 0910e0a
Fix memory leak in coalesce. (pytorch#1460)
Fixes pytorch#1449. For future reference, we should have a doc explaining our ref-counting conventions; it looks like this bug slipped by because we assumed that newTensor was taking ownership of the pointers it was passed in. Signed-off-by: Edward Z. Yang <ezyang@fb.com>1 parent 9309429 commit 0910e0a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
0 commit comments