Skip to content

Commit

Permalink
quic: fix incorrect defer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Jan 10, 2025
1 parent 14acfa1 commit 3a49b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/quic_client.zig
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ pub fn runClient(
exit: ExitCondition,
) !void {
var client = try Client(20, 20).create(allocator, receiver, logger, exit);
try client.run();
defer {
client.deinit();
allocator.destroy(client);
}
try client.run();
}

pub fn Client(
Expand Down

0 comments on commit 3a49b84

Please sign in to comment.