[svn-commits] file: branch 1.4 r89577 - /branches/1.4/main/channel.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Nov 26 09:34:38 CST 2007
Author: file
Date: Mon Nov 26 09:34:38 2007
New Revision: 89577
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89577
Log:
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)
Modified:
branches/1.4/main/channel.c
Modified: branches/1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=89577&r1=89576&r2=89577
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Mon Nov 26 09:34:38 2007
@@ -776,6 +776,7 @@
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);
free(tmp);
return NULL;
More information about the svn-commits
mailing list