Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
a8ea3e73
Commit
a8ea3e73
authored
Jul 19, 2013
by
Axel Auweter
Browse files
Fixes a memory leak / message decoding error when a MQTT client disconnects.
parent
b946ab0c
Changes
1
Show whitespace changes
Inline
Side-by-side
CollectAgent/simplemqttserverthread.cpp
View file @
a8ea3e73
...
...
@@ -375,6 +375,11 @@ void SimpleMQTTServerMessageThread::releaseConnection(int connectionId)
fds
[
connectionId
].
events
=
0
;
fds
[
connectionId
].
revents
=
0
;
if
(
msg
[
connectionId
])
{
delete
msg
[
connectionId
];
msg
[
connectionId
]
=
NULL
;
}
numConnections
--
;
fdsMtx
.
unlock
();
...
...
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