-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correctly deallocate info buffers
This ensures that if either of the infos was in fact built, but the deallocate function is called before the respective toPacket function, we release the allocated buffer. This can happen due to exceptions or just abnormal process flow, in any case, we make the assumption that if an info object is deallocated, it will not be written into the channels from that point onward, and as such, it is safe to release the buffers related to them.
- Loading branch information
Showing
2 changed files
with
35 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters