[asterisk-commits] branch 1.2 r19351 - /branches/1.2/asterisk.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Apr 11 14:55:53 MST 2006
Author: tilghman
Date: Tue Apr 11 16:55:51 2006
New Revision: 19351
URL: http://svn.digium.com/view/asterisk?rev=19351&view=rev
Log:
Bug 6097 - possible descriptor leak
Modified:
branches/1.2/asterisk.c
Modified: branches/1.2/asterisk.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/asterisk.c?rev=19351&r1=19350&r2=19351&view=diff
==============================================================================
--- branches/1.2/asterisk.c (original)
+++ branches/1.2/asterisk.c Tue Apr 11 16:55:51 2006
@@ -615,6 +615,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