aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 15:36:27 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-26 15:36:27 +0000
commit532589d879f988888344c92f99166ab72a9aae16 (patch)
treea63380f2069dbb98265cbcaacfcc6e663c3b6fe4 /main/channel.c
parent5219dc885e2fda7239653750aa800e4de6375d39 (diff)
Merged revisions 89577 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89577 | file | 2007-11-26 11:34:38 -0400 (Mon, 26 Nov 2007) | 6 lines If channel allocation fails because the alert pipe could not be created also free the scheduler context. (closes issue #11355) Reported by: eliel Patches: main.channel.c.patch uploaded by eliel (license 64) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89578 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index 13968e483..0dd937c1e 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -673,6 +673,7 @@ struct ast_channel *ast_channel_alloc(int needqueue, int state, const char *cid_
if (needqueue) {
if (pipe(tmp->alertpipe)) {
ast_log(LOG_WARNING, "Channel allocation failed: Can't create alert pipe!\n");
+ sched_context_destroy(tmp->sched);
ast_string_field_free_memory(tmp);
ast_free(tmp);
return NULL;