aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-08 13:17:17 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-08 13:17:17 +0000
commita726040c2b25df110a9a64c6ed22f4c3c1214b59 (patch)
tree081194034a0a140cde66d3104857fb55508c5c4c /main/http.c
parenta97792f32c909455ebb8b9ccbaaf529d95709b6b (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.c2
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);