-
Notifications
You must be signed in to change notification settings - Fork 324
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[c++ grpc] Fix multi-slice deser. memory leak
The caller of grpc_byte_buffer_reader_next is responsible for calling grpc_slice_unref on the slice. However, SerializationTraits::Deserialize was only calling grpc_slice_unref on the last slice. Now, it is called on each slice. Also fixes a potential bug that would call grpc_slice_unref on an uninitialized slice.
- Loading branch information
Showing
2 changed files
with
10 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