We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d52ae commit cdc874dCopy full SHA for cdc874d
src/jdk.sctp/unix/native/libsctp/SctpChannelImpl.c
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 2009, 2020, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2021, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -475,6 +475,7 @@ JNIEXPORT jint JNICALL Java_sun_nio_ch_sctp_SctpChannelImpl_receive0
475
iov->iov_len = SCTP_NOTIFICATION_SIZE - rv;
476
if ((rv = recvmsg(fd, msg, flags)) < 0) {
477
handleSocketError(env, errno);
478
+ free(newBuf);
479
return 0;
480
}
481
bufp = newBuf;
0 commit comments