Skip to content

Commit

Permalink
Add missing memory context switch
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnefoa committed Jun 24, 2024
1 parent 5c53c20 commit 1d139eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pg_tracing_otel.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ send_spans_to_otel_collector(OtelContext * octx)
{
LWLockRelease(pg_tracing_shared_state->lock);
MemoryContextReset(marshal_mem_ctx);
MemoryContextSwitchTo(otel_exporter_mem_ctx);
free(qbuffer);
return;
}
Expand Down

0 comments on commit 1d139eb

Please sign in to comment.