Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
aion
Commits
c801d2bc
Commit
c801d2bc
authored
Jan 31, 2017
by
Philip Trettner
Browse files
Fixed a potential memory leak
parent
40775ae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/aion/common/NetMessage.cc
View file @
c801d2bc
...
@@ -162,6 +162,7 @@ void NetMessage::verifyTypeInfo(const std::string &type, const std::string &fiel
...
@@ -162,6 +162,7 @@ void NetMessage::verifyTypeInfo(const std::string &type, const std::string &fiel
std
::
cerr
<<
"Trying to read a std::string with size "
<<
size
<<
"which is quite too long"
<<
std
::
endl
;
std
::
cerr
<<
"Trying to read a std::string with size "
<<
size
<<
"which is quite too long"
<<
std
::
endl
;
assert
(
0
);
assert
(
0
);
}
}
delete
[]
stype
;
mGood
=
false
;
mGood
=
false
;
return
;
return
;
}
}
...
...
Write
Preview
Supports
Markdown
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