diff --git a/main/http.c b/main/http.c
index 1a5da9c43c014d26b887b0de63948eff642ecec5..c72f35ec585579bb0fd78212c8f5eeab5205fbb8 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();