acvictor opened a new pull request, #11620: URL: https://github.com/apache/incubator-gluten/pull/11620
## What changes are proposed in this pull request? This PR replaces `throw new GlutenException(...)` with `throw GlutenException(...)` in `FileReaderIterator::getInputIteratorFromFileReader`. `throw new` will allocate the exception object on the heap, but standard catch blocks catch by reference (`catch (const std::exception& e)`), so the pointer will never freed causing a memory leak on the exception path. ## How was this patch tested? Existing tests ## Was this patch authored or co-authored using generative AI tooling? No -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
