[asterisk-commits] trunk r19352 - in /trunk: ./ asterisk.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 11 14:58:45 MST 2006


Author: tilghman
Date: Tue Apr 11 16:58:44 2006
New Revision: 19352

URL: http://svn.digium.com/view/asterisk?rev=19352&view=rev
Log:
Merged revisions 19351 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19351 | tilghman | 2006-04-11 16:55:51 -0500 (Tue, 11 Apr 2006) | 2 lines

Bug 6097 - possible descriptor leak

........

Modified:
    trunk/   (props changed)
    trunk/asterisk.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/asterisk.c
URL: http://svn.digium.com/view/asterisk/trunk/asterisk.c?rev=19352&r1=19351&r2=19352&view=diff
==============================================================================
--- trunk/asterisk.c (original)
+++ trunk/asterisk.c Tue Apr 11 16:58:44 2006
@@ -597,6 +597,8 @@
 					consoles[x].fd = s;
 					if (ast_pthread_create(&consoles[x].t, &attr, netconsole, &consoles[x])) {
 						ast_log(LOG_ERROR, "Unable to spawn thread to handle connection: %s\n", strerror(errno));
+						close(consoles[x].p[0]);
+						close(consoles[x].p[1]);
 						consoles[x].fd = -1;
 						fdprint(s, "Server failed to spawn thread\n");
 						close(s);



More information about the asterisk-commits mailing list