Skip to content

Fix backup handle release when finish reports an error - #77

Merged
vinzenz merged 1 commit into
masterfrom
t3code/fix-sqlite-wrapper-issue
Sep 13, 2026
Merged

vinzenz merged 1 commit into
masterfrom
t3code/fix-sqlite-wrapper-issue

Conversation

@vinzenz

@vinzenz vinzenz commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Release the SQLite backup handle before propagating sqlite3_backup_finish() errors.
  • Add regression coverage for repeated finish calls and destructor cleanup after failed backups.

Testing

  • Added tests covering failed backup cleanup and destruction without explicit finish.

Fixes #54

- Clear the backup handle before reporting finish errors
- Add regression tests for repeated finish and destructor cleanup
@vinzenz

vinzenz commented Sep 12, 2026

Copy link
Copy Markdown
Owner Author

@deslopify

@vinzenz

vinzenz commented Sep 13, 2026

Copy link
Copy Markdown
Owner Author

@deslopify rerun

Repository owner deleted a comment from coderabbitai Bot Sep 13, 2026
@vinzenz
vinzenz merged commit f4abfa0 into master Sep 13, 2026
20 checks passed
@deslopify

deslopify Bot commented Sep 13, 2026

Copy link
Copy Markdown

Review request received. The standard review is completed. Use @deslopify rerun to request a new attempt once this one finishes.

@vinzenz
vinzenz deleted the t3code/fix-sqlite-wrapper-issue branch September 19, 2026 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[P1] backup::finish reuses a freed handle after reporting an error

1 participant