Recently there was a fix that addressed some potential memory leaks if there were errors in the response to the Webclient. Fix is here
If using exchange() what is the proper way to dispose of a response? Can leaks still occur on bodyToMono(String.class) ? Trying to understand if this fix was specific to cases where bytebuffers are used e.g.
The above snippet is used directly in WebClients default error handler - so would like to know if this is the only "safe" way to deal with disposing a response if a non 200 status code has taken place after using exchange.