Merge pull request #288 from metricq/master

fix access to free'd memory in case of errors
This commit is contained in:
Emiel Bruijntjes 2019-06-19 10:49:43 +02:00 committed by GitHub
commit f107b4aa3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -846,6 +846,7 @@ void ChannelImpl::reportError(const char *message, bool notifyhandler)
// the connection no longer has to know that this channel exists,
// because the channel ID is no longer in use
if (_connection) _connection->remove(this);
_connection = nullptr;
}
/**