1
0
Fork 0

runtime/kernel/control: fixed memory leak

This commit is contained in:
pca006132 2020-09-03 16:50:33 +08:00
parent 1931957bc0
commit cdc8ad8aee
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ impl Control {
pub fn restart(&mut self) { pub fn restart(&mut self) {
{ {
INIT_LOCK.lock(); let _lock = INIT_LOCK.lock();
restart_core1(); restart_core1();
unsafe { unsafe {
self.tx.drop_elements(); self.tx.drop_elements();