netty5/codec-http/src
Norman Maurer 8636aad989 Destroy HttpPostMultipartRequestDecoder if contructor throws (#11207)
Motivation:

We need to call destroy() if the constructor of HttpPostMultipartRequestDecoder throws as otherwise we may leak memory.

Modifications:

- Call destroy() if we throw
- Add unit test

Result:

No more leaks when constructor throws

Co-authored-by: Frederic Bregier <frederic.bregier@waarp.fr>
2021-04-28 12:27:37 +02:00
..
main Destroy HttpPostMultipartRequestDecoder if contructor throws (#11207) 2021-04-28 12:27:37 +02:00
test Destroy HttpPostMultipartRequestDecoder if contructor throws (#11207) 2021-04-28 12:27:37 +02:00