diff --git a/main/manager.c b/main/manager.c index da6d3e32fe..b795ad38f2 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2342,6 +2342,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;