diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-08 13:17:17 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-03-08 13:17:17 +0000 |
commit | a726040c2b25df110a9a64c6ed22f4c3c1214b59 (patch) | |
tree | 081194034a0a140cde66d3104857fb55508c5c4c /main/http.c | |
parent | a97792f32c909455ebb8b9ccbaaf529d95709b6b (diff) |
fix two cases where HTTP session file descriptors would not be closed
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58351 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r-- | main/http.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c index 3f8f747ac..772b0e39c 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); |