Merge pull request #288 from metricq/master
fix access to free'd memory in case of errors
This commit is contained in:
commit
f107b4aa3e
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue