Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
0a81eb64
Commit
0a81eb64
authored
Jun 12, 2017
by
Christopher Berner
Committed by
Wouter van Oortmerssen
Jun 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak in Message move operator (#4344)
parent
b1740688
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
grpc.h
include/flatbuffers/grpc.h
+1
-0
No files found.
include/flatbuffers/grpc.h
View file @
0a81eb64
...
@@ -47,6 +47,7 @@ class Message {
...
@@ -47,6 +47,7 @@ class Message {
Message
(
const
Message
&
other
)
=
delete
;
Message
(
const
Message
&
other
)
=
delete
;
Message
&
operator
=
(
Message
&&
other
)
{
Message
&
operator
=
(
Message
&&
other
)
{
grpc_slice_unref
(
slice_
);
slice_
=
other
.
slice_
;
slice_
=
other
.
slice_
;
other
.
slice_
=
grpc_empty_slice
();
other
.
slice_
=
grpc_empty_slice
();
return
*
this
;
return
*
this
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment