Fix memory leaks

This commit is contained in:
Ondrej Novak 2025-03-09 16:59:54 +01:00
parent 1297cccd70
commit 4ea74f3b15

View file

@ -39,7 +39,6 @@ struct MsgQueue {
TaskInfo *sender; TaskInfo *sender;
}; };
static std::queue<MsgQueue> msg_queue;
static int recursion_count = 0; static int recursion_count = 0;
@ -148,7 +147,6 @@ char is_running(int id_num) {
return !iter->second->exited; return !iter->second->exited;
} }
void unsuspend_task(EVENT_MSG *msg) { void unsuspend_task(EVENT_MSG *msg) {
msg_queue.push({msg, current_task_inst});
broadcast_message(msg); broadcast_message(msg);
} }
void task_sleep(void) { void task_sleep(void) {