Skip to content

Commit

Permalink
Merge pull request #60 from preston-thompson/fix-channel-destroy-leak
Browse files Browse the repository at this point in the history
Fix memory leak for read_chunk_buffer and write_chunk_buffer
  • Loading branch information
nathhB authored May 25, 2024
2 parents 018593c + 2a9b557 commit 2148088
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nbnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -4092,6 +4092,9 @@ void NBN_Channel_Destroy(NBN_Channel *channel)
}
}

NBN_Deallocator(channel->read_chunk_buffer);
NBN_Deallocator(channel->write_chunk_buffer);

NBN_Deallocator(channel);
}

Expand Down

0 comments on commit 2148088

Please sign in to comment.