kfree calls match to inteface now
This commit is contained in:
parent
e7cae5599d
commit
d1fd6d151f
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ static int iRCCE_mail_fetch(
|
|||
if( header->tag == iRCCE_LAST_MAIL ) {
|
||||
iRCCE_last_mail[rank] = 1;
|
||||
iRCCE_mailbox_close( rank ); // we can close respective mailbox
|
||||
free( header );
|
||||
kfree( header, sizeof(iRCCE_MAIL_HEADER) );
|
||||
}
|
||||
else {
|
||||
// check mail priority
|
||||
|
@ -305,7 +305,7 @@ int iRCCE_mailbox_flush(void) {
|
|||
|
||||
while( erase_header != NULL ) {
|
||||
iRCCE_mailbox_recv_queue[i] = iRCCE_mailbox_recv_queue[i]->next;
|
||||
free( erase_header );
|
||||
kfree( erase_header, sizeof(iRCCE_MAIL_HEADER) );
|
||||
erase_header = iRCCE_mailbox_recv_queue[i];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue