Skip to content

Commit 9d172bb

Browse files
committed
Fixes a 'leak' with telemetry
This is just something that isn't cleaned up on exit, so it isn't a "leak", but better to be explicit with the free.
1 parent c335a54 commit 9d172bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/telemetry/lightpanda.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ pub const LightPanda = struct {
7676

7777
fn run(self: *LightPanda) void {
7878
var aw = std.Io.Writer.Allocating.init(self.allocator);
79+
defer aw.deinit();
7980

8081
var batch: [MAX_BATCH_SIZE]*LightPandaEvent = undefined;
8182
self.mutex.lock();

0 commit comments

Comments
 (0)