mirror of https://github.com/ARMmbed/mbed-os.git
free memory afer disabling the usb ISR solves race condition which could corrupt the heap. (issue #1049)
parent
2198e68f76
commit
478aa7ef33
|
|
@ -135,10 +135,10 @@ bool USBMSD::connect(bool blocking) {
|
|||
}
|
||||
|
||||
void USBMSD::disconnect() {
|
||||
USBDevice::disconnect();
|
||||
//De-allocate MSD page size:
|
||||
free(page);
|
||||
page = NULL;
|
||||
USBDevice::disconnect();
|
||||
}
|
||||
|
||||
void USBMSD::reset() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue