Commit e437607
committed
fix: Do not close wazero module on error (#3758)
wazero takes care not to leak modules when `InstantiateModule` returns
an error.
This means that sqlc will call `result.Close` a second time if a non nil
module was returned, which causes a segfault.1 parent 7700b5a commit e437607
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 225 | | |
229 | 226 | | |
230 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
0 commit comments