diff --git a/net/sctp/stream.c b/net/sctp/stream.c index 0da57938a6c5dd9152456c91e877cf189d1bf761..87061a4bb44b6a9d4bf80de1ce4201d64f34192b 100644 --- a/net/sctp/stream.c +++ b/net/sctp/stream.c @@ -416,6 +416,7 @@ int sctp_send_reset_streams(struct sctp_association *asoc, nstr_list[i] = htons(str_list[i]); if (out && !sctp_stream_outq_is_empty(stream, str_nums, nstr_list)) { + kfree(nstr_list); retval = -EAGAIN; goto out; }