Skip to content

Commit

Permalink
no need to free a null
Browse files Browse the repository at this point in the history
  • Loading branch information
relaxolotl committed Dec 10, 2021
1 parent 2b4b705 commit def13ae
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/sentry_scope.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,6 @@ sentry__scope_apply_to_event(const sentry_scope_t *scope,
sentry_value_t trace = sentry__span_get_trace_context(scope->span);
if (!sentry_value_is_null(trace)) {
sentry_value_set_by_key(contexts, "trace", trace);
} else {
sentry_value_decref(trace);
}
PLACE_VALUE("contexts", contexts);
sentry_value_decref(contexts);
Expand Down

0 comments on commit def13ae

Please sign in to comment.