diff --git a/sched.c b/sched.c index b9b44f8697fcb56c9f9d35a4b8cd64c06fa8825c..f3841e39948eb8b2c6bb5b6b5eda69f89e616236 100755 --- a/sched.c +++ b/sched.c @@ -238,6 +238,7 @@ int ast_sched_del(struct sched_context *con, int id) else con->schedq = s->next; con->schedcnt--; + sched_release(con, s); return 0; } last = s;