ID:366 - Properly clean LAN and LAN+ interfaces on close

When closing, LAN and LAN+ interfaces do not do proper cleaning of request
entries. Some pointers remain non NULL. This may cause bad memory references.

Commit for: Dmitry Bazhenov
This commit is contained in:
Zdenek Styblik 2015-07-25 12:51:10 +02:00
parent a585af7e0c
commit 24fd406506
2 changed files with 4 additions and 0 deletions

View File

@ -217,6 +217,7 @@ ipmi_req_clear_entries(void)
}
}
ipmi_req_entries = NULL;
ipmi_req_entries_tail = NULL;
}
static int

View File

@ -386,6 +386,9 @@ ipmi_req_clear_entries(void)
free(e);
e = p;
}
ipmi_req_entries = NULL;
ipmi_req_entries_tail = NULL;
}