bneradt opened a new pull request, #13159: URL: https://github.com/apache/trafficserver/pull/13159
Coverity reports the AIO callback lifetime regression test as a leak and bad free because the test heap-allocates an owner object whose member callback is destroyed indirectly during completion. The runtime behavior is intentional, but the ownership pattern makes the regression test look invalid to static analysis. This updates the fixture so the owner has normal stack lifetime and owns the callback through a unique_ptr. The completion handler still destroys the callback before AIOCallback::io_complete() returns, preserving the lifetime coverage while making the allocation and free visible to analysis. -- 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]
