From: Kevin P. Fleming Date: Thu, 8 Mar 2007 13:17:17 +0000 (+0000) Subject: fix two cases where HTTP session file descriptors would not be closed X-Git-Tag: 1.4.2~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a2e3d0b8b817bf7cc3246f80b7ca5fdfc645480;p=thirdparty%2Fasterisk.git fix two cases where HTTP session file descriptors would not be closed git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@58351 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/http.c b/main/http.c index 3f8f747ac4..772b0e39c3 100644 --- a/main/http.c +++ b/main/http.c @@ -497,6 +497,7 @@ static void *ast_httpd_helper_thread(void *data) free(title); } fclose(ser->f); + close(ser->fd); free(ser); return NULL; } @@ -538,6 +539,7 @@ static void *http_root(void *data) 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);