Skip to content

Commit

Permalink
Use right allocator to free gossip value (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
InKryption authored Feb 11, 2025
1 parent 78b66a1 commit 01a8896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gossip/table.zig
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ pub const GossipTable = struct {
}

// free memory while versioned_value still points to the correct data
versioned_value.value.data.deinit(self.allocator);
versioned_value.value.data.deinit(self.gossip_data_allocator);

// remove from store
// this operation replaces the data pointed to by versioned_value to
Expand Down

0 comments on commit 01a8896

Please sign in to comment.