diff --git a/main/manager.c b/main/manager.c index 3b580005c6..8b91262b19 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2195,6 +2195,7 @@ static int action_originate(struct mansession *s, const struct message *m) fast->timeout = to; fast->priority = pi; if (ast_pthread_create_detached(&th, NULL, fast_originate, fast)) { + ast_free(fast); res = -1; } else { res = 0;