-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
According to the docs strings returned by sqlite3_expanded_sql should be freed manually with sqlite3_free:
https://www.sqlite.org/c3ref/expanded_sql.html
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.
Line 189 in f1ddf61
| return C.GoString(C.sqlite3_expanded_sql(stmt.stmt)) |
linden
Metadata
Metadata
Assignees
Labels
No labels