forked from M-Labs/nac3
runtime/kernel/control: fixed memory leak
This commit is contained in:
parent
1931957bc0
commit
cdc8ad8aee
|
@ -41,7 +41,7 @@ impl Control {
|
|||
|
||||
pub fn restart(&mut self) {
|
||||
{
|
||||
INIT_LOCK.lock();
|
||||
let _lock = INIT_LOCK.lock();
|
||||
restart_core1();
|
||||
unsafe {
|
||||
self.tx.drop_elements();
|
||||
|
|
Loading…
Reference in New Issue