You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The string returned by sqlite3_expanded_sql(P), on the other hand, is obtained from sqlite3_malloc() and must be freed by the application by passing it to sqlite3_free().
Here the C value is passed directly to C.GoString. I'm not an expert in CGO and I don't know if this could be a potential memory leak.
According to the docs strings returned by
sqlite3_expanded_sql
should be freed manually withsqlite3_free
:https://www.sqlite.org/c3ref/expanded_sql.html
Here the C value is passed directly to
C.GoString
. I'm not an expert in CGO and I don't know if this could be a potential memory leak.sqlite/cgosqlite/cgosqlite.go
Line 189 in f1ddf61
The text was updated successfully, but these errors were encountered: