fix: remove spurious decref in `sentry_capture_user_feedback()` by jpnurmi · Pull Request #1510 · getsentry/sentry-native
bot reviewed Feb 10, 2026
Remove `sentry_value_decref(user_report)` from `prepare_user_report()` fail path. The caller already decrefs unconditionally, so having it in both places caused a use-after-free on failure. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jpnurmi
changed the title
fix: remove spurious decref in sentry_capture_user_feedback()
fix: remove spurious decref in sentry_capture_user_report()
jpnurmi
changed the title
fix: remove spurious decref in sentry_capture_user_report()
fix: remove spurious decref in sentry_capture_user_feedback()
jpnurmi
deleted the
jpnurmi/fix/user-report-decref
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters