Commit c543ffa
authored
fix: Do not close wazero module on error (sqlc-dev#3758) (sqlc-dev#3759)
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 7c58ca5 commit c543ffa
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments