[asterisk-commits] kpfleming: branch 1.4 r58351 -
/branches/1.4/main/http.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Thu Mar 8 06:17:17 MST 2007
Author: kpfleming
Date: Thu Mar 8 07:17:17 2007
New Revision: 58351
URL: http://svn.digium.com/view/asterisk?view=rev&rev=58351
Log:
fix two cases where HTTP session file descriptors would not be closed
Modified:
branches/1.4/main/http.c
Modified: branches/1.4/main/http.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/http.c?view=diff&rev=58351&r1=58350&r2=58351
==============================================================================
--- branches/1.4/main/http.c (original)
+++ branches/1.4/main/http.c Thu Mar 8 07:17:17 2007
@@ -497,6 +497,7 @@
free(title);
}
fclose(ser->f);
+ close(ser->fd);
free(ser);
return NULL;
}
@@ -538,6 +539,7 @@
if (ast_pthread_create_background(&launched, &attr, ast_httpd_helper_thread, ser)) {
ast_log(LOG_WARNING, "Unable to launch helper thread: %s\n", strerror(errno));
fclose(ser->f);
+ close(ser->fd);
free(ser);
}
pthread_attr_destroy(&attr);
More information about the asterisk-commits
mailing list