Browse Source

async: free the async item after resuming the execution

- reported by Surendra Pullaiah
Daniel-Constantin Mierla 11 năm trước cách đây
mục cha
commit
c33583e645
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      modules/async/async_sleep.c

+ 1 - 0
modules/async/async_sleep.c

@@ -183,5 +183,6 @@ void async_timer_exec(unsigned int ticks, void *param)
 			break;
 		if(ai->act!=NULL)
 			tmb.t_continue(ai->tindex, ai->tlabel, ai->act);
+		shm_free(ai);
 	}
 }