Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: expanded sql leak #500

Merged
merged 2 commits into from
Feb 3, 2024
Merged

Commits on Feb 2, 2024

  1. style: format C files

    flavorjones committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    e8bd742 View commit details
    Browse the repository at this point in the history
  2. fix: memory leak in Statement#expanded_sql

    from https://www.sqlite.org/c3ref/expanded_sql.html
    
    > The strings returned by sqlite3_sql(P) and sqlite3_normalized_sql(P)
    > are managed by SQLite and are automatically freed when the prepared
    > statement is finalized. 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().
    flavorjones committed Feb 2, 2024
    Configuration menu
    Copy the full SHA
    979e8b2 View commit details
    Browse the repository at this point in the history