weim0000 opened a new pull request, #2685:
URL: https://github.com/apache/kvrocks/pull/2685
when new connection on the worker, if AddConnection function return the
status is not OK, we need call 'delete conn' before 'return', avoid memory leak
auto conn = new redis::Connection(bev, this);
s = AddConnection(conn);
if (!s.IsOK()) {
conn->Close();
**delete conn;**
return;
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]