Skip to content

Commit

Permalink
decref no longer copied os_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Nov 25, 2024
1 parent ffad25d commit 1699009
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sentry_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ sentry__get_os_context(void)
sentry_value_incref(sentry_value_get_by_key(os_dist, "name"));
sentry_value_incref(sentry_value_get_by_key(os_dist, "version"));
sentry_value_incref(sentry_value_get_by_key(os_dist, "pretty_name"));
sentry_value_decref(os_dist);
# endif // defined(SENTRY_PLATFORM_LINUX)

return os;
Expand Down

0 comments on commit 1699009

Please sign in to comment.