Commit b70c16e
Don't set _IS_INIT = true before initializing _ALGO_INSTANCE
I hope I don't miss any subtle detail, but it looks wrong to set
_IS_INIT before _ALGO_INSTANCE gets initialized. In case new
returns Err, _ALGO_INSTANCE will stay uninitialized, but a later call
to UnInit will still try to drop it.
As there is already a _IS_INIT = true immediately after setting
_ALGO_INSTANCE, I think this line can just be removed.1 parent 529be40 commit b70c16e
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
0 commit comments