summaryrefslogtreecommitdiff
path: root/main/http.c
diff options
context:
space:
mode:
authorDoug Bailey <dbailey@digium.com>2007-09-17 14:58:19 +0000
committerDoug Bailey <dbailey@digium.com>2007-09-17 14:58:19 +0000
commit410bdaf53505e2a557e8d4f7f01970d568954d12 (patch)
tree533012575cbd0381e4db7b4e5f5299d829e6f646 /main/http.c
parent3d22579ca913e65feb813dfa1e83ad52d084e2d5 (diff)
Fix memory leak introduced when POST support was added.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@82568 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/http.c b/main/http.c
index 1a5da9c43..c72f35ec5 100644
--- a/main/http.c
+++ b/main/http.c
@@ -841,6 +841,9 @@ static void *httpd_helper_thread(void *data)
/* If they aren't mopped up already, clean up the cookies */
if (vars)
ast_variables_destroy(vars);
+ /* Clean up all the header information pulled as well */
+ if (headers)
+ ast_variables_destroy(headers);
if (out) {
struct timeval tv = ast_tvnow();