Browse Source

async: free the async item after resuming the execution

- reported by Surendra Pullaiah
Daniel-Constantin Mierla 11 years ago
parent
commit
c33583e645
1 changed files with 1 additions and 0 deletions
  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;
 			break;
 		if(ai->act!=NULL)
 		if(ai->act!=NULL)
 			tmb.t_continue(ai->tindex, ai->tlabel, ai->act);
 			tmb.t_continue(ai->tindex, ai->tlabel, ai->act);
+		shm_free(ai);
 	}
 	}
 }
 }