Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset model object before using it to unpack a flatbuffer to avoid th…
…e memory leak The existing code relies on UnPackTo to merge the existing state with the new incoming state. However, this behavior was changed in google/flatbuffers#7527 and now leads to memory leak. Ignore the commit description there as it is outdated. During the review, they decided to not have the old behavior as an option. PiperOrigin-RevId: 484798857
- Loading branch information
1 parent
269e683
commit c077b75
Showing
1 changed file
with
35 additions
and
23 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