Version 0.2.0 from FTP
[asterisk/asterisk.git] / sched.c
diff --git a/sched.c b/sched.c
index b9b44f8..f3841e3 100755 (executable)
--- 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;