apache / rocketmq-client-cpp

Apache RocketMQ cpp client
https://rocketmq.apache.org/
Apache License 2.0
370 stars 159 forks source link

fixed memory leak: free address info after get it using evutil_getadd… #431

Closed ChrisZhangJin closed 2 years ago

ChrisZhangJin commented 2 years ago

Memory leak in TcpTransport::getInetAddr #430

What is the purpose of the change

bugfix

Brief changelog

src/transport/TcpTransport.cpp

fix the meory leak caused by calling evutil_getaddrinfo without evutil_freeaddrinfo

Tested and Verified locally.