Commit 5539039
add validity check AlignedTableTightAlloc clear method (facebookresearch#3997)
Summary:
Pull Request resolved: facebookresearch#3997
Avoid null pointer error by checking that `numel > 0`.
It's equivalent of checking`ptr != null` but keeping numel check for consistency.
Bug reported in: facebookresearch#3994
Reviewed By: mnorris11
Differential Revision: D65073502
fbshipit-source-id: f9aa56cbcd28fc352d45ef5b8727fa857fbe53451 parent efa18da commit 5539039
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
0 commit comments