On Fri, 12 Feb 2021 08:50:14 GMT, Matthias Baesken <mbaes...@openjdk.org> wrote:

>Btw. while adjusting Java_sun_nio_ch_sctp_SctpChannelImpl_receive0 , I started 
>to wonder what happens to the allocated >memory in the same file in 
>handleSendFailed ( if ((addressP = malloc(dataLength)) == NULL) ) in early 
>return cases incl. the >CHECK_NULL , is there some deallocation missing there 
>too ?

hi, any comments on this ?   See  SctpChannelImpl.c 
[SctpChannelImpl.c 
](https://github.com/openjdk/jdk/blob/master/src/jdk.sctp/unix/native/libsctp/SctpChannelImpl.c#L222)

the malloc there is followed by a few early returns, where is the memory freed 
is these cases ?

-------------

PR: https://git.openjdk.java.net/jdk/pull/2540

Reply via email to