brpc icon indicating copy to clipboard operation
brpc copied to clipboard

Memory leak?

Open QiAnXinCodeSafe opened this issue 1 year ago • 1 comments

Hi all, This is Qianxin CodeSafe Team, we found a suspicious issue, at https://github.com/apache/brpc/blob/5cdf22f158722b3b11c7eabb7632690d719ccc4b/tools/parallel_http/parallel_http.cpp#L210 which is allocating memory at https://github.com/apache/brpc/blob/5cdf22f158722b3b11c7eabb7632690d719ccc4b/tools/parallel_http/parallel_http.cpp#L138

If none of the previous loops are truel,this will result in a return of 0 and a memory leak of point “args”

QiAnXinCodeSafe avatar Oct 22 '24 10:10 QiAnXinCodeSafe

Thanks for the feedback. I will optimize the implementation and solve the memory leak problem later.

chenBright avatar Oct 31 '24 03:10 chenBright