free memory to reduce the memory leaks
This commit is contained in:
@@ -650,7 +650,8 @@ static void sctp_send_data(sctp_data_req_t *sctp_data_req_p)
|
||||
/* TODO: notify upper layer */
|
||||
return;
|
||||
}
|
||||
|
||||
if ( sctp_data_req_p->freeAfterSend)
|
||||
free(sctp_data_req_p->buffer);
|
||||
SCTP_DEBUG("Successfully sent %u bytes on stream %d for assoc_id %u\n",
|
||||
sctp_data_req_p->buffer_length, sctp_data_req_p->stream,
|
||||
sctp_cnx->assoc_id);
|
||||
|
||||
Reference in New Issue
Block a user